Ask a Question related to Macromedia Director 3D, Design and Development.
-
Jan Eden #1
Relative path
Hi,
I wrote some scripts using File::Find's find function like this
find (\&process, $path)
I get $path either from the command line or from a default string. Now how can I enable my scripts to deal with relative pathnames? Right now, the script complains not being able to process (open etc.) the files if I do not specify an absolute path.
Is there a simple way to convert relative paths to absolute ones?
Thanks,
Jan
--
There are 10 kinds of people: those who understand binary, and those who don't
Jan Eden Guest
-
Contribute 3.1 absolute/relative path bug?
When placing images, C3 insists on saving the src attribute as relative to the document regardless of the File Placement settings specified under... -
User control + relative path
Hi. I need some help on this. I have a user control (a header) in my root directory, and all my pages use that control. Then a created a folder (in... -
Relative Path for Shared Movies
Is it possible to used shared assets without specifying a URL but a relative path to the shared swf file? I am currently specifying... -
#25506 [Opn->WFx]: <xsl:include> with relative path
ID: 25506 Updated by: rrichards@php.net Reported By: cryo28 at rbcmail dot ru -Status: Open +Status: ... -
#25506 [NEW]: <xsl:include> with relative path
From: cryo28 at rbcmail dot ru Operating system: Win2K PHP version: 4.3.3 PHP Bug Type: DOM XML related Bug description: ... -
James Edward Gray II #2
Re: Relative path
On Jan 19, 2004, at 6:31 AM, Jan Eden wrote:
Sure is:> Hi,
>
> I wrote some scripts using File::Find's find function like this
>
> find (\&process, $path)
>
> I get $path either from the command line or from a default string. Now
> how can I enable my scripts to deal with relative pathnames? Right
> now, the script complains not being able to process (open etc.) the
> files if I do not specify an absolute path.
>
> Is there a simple way to convert relative paths to absolute ones?
use File::Spec;
my $abs_path = File::Spec->rel2abs( $rel_path );
Hope that helps.
James
James Edward Gray II Guest
-
Jan Eden #3
Re: Relative path
James Edward Gray II wrote:
It certainly does. Thanks! I always hesitate to use perldoc, since the system is so crippled on my machine.>On Jan 19, 2004, at 6:31 AM, Jan Eden wrote:
>>>>Hi,
>>
>>I wrote some scripts using File::Find's find function like this
>>
>>find (\&process, $path)
>>
>>I get $path either from the command line or from a default string.
>>Now how can I enable my scripts to deal with relative pathnames?
>>Right now, the script complains not being able to process (open
>>etc.) the files if I do not specify an absolute path.
>>
>>Is there a simple way to convert relative paths to absolute ones?
>Sure is:
>
>use File::Spec; my $abs_path = File::Spec->rel2abs( $rel_path );
>
>Hope that helps.
'perldoc perldoc' does not work, and the whole perlfaq is missing (on OS 10.3).
Unfortunately, rel2abs and abs2rel are not mentioned in either Perl in a Nutshell or Programming Perl.
Thanks again,
Jan
--
How many Microsoft engineers does it take to screw in a lightbulb? None. They just redefine "dark" as the new standard.
Jan Eden Guest
-
James Edward Gray II #4
Re: Relative path
On Jan 19, 2004, at 9:53 AM, Jan Eden wrote:
You probably know this, but just to be sure, this is not normal.> I always hesitate to use perldoc, since the system is so crippled on
> my machine.
>
> 'perldoc perldoc' does not work, and the whole perlfaq is missing (on
> OS 10.3).
'perldoc' works beautifully on OS X (all versions) out of the box.
I imagine you could fix it by upgrading/reinstalling Perl, if you're
interested.
Alternately, try:
[url]http://www.perldoc.com/[/url]
James
James Edward Gray II Guest
-
Jan Eden #5
Re: Relative path
James Edward Gray II wrote:
That's what I suspected and what I heard.>On Jan 19, 2004, at 9:53 AM, Jan Eden wrote:
>>>> I always hesitate to use perldoc, since the system is so crippled on
>> my machine.
>>
>> 'perldoc perldoc' does not work, and the whole perlfaq is missing (on
>> OS 10.3).
>You probably know this, but just to be sure, this is not normal.
>'perldoc' works beautifully on OS X (all versions) out of the box.
>
Can I reinstall Perl (just Perl) from the OS X CDs?>I imagine you could fix it by upgrading/reinstalling Perl, if you're
>interested.
>
This will help for now. Thank you.>Alternately, try:
>
>[url]http://www.perldoc.com/[/url]
>
- Jan
--
The day Microsoft makes something that doesn't suck is the day they start selling vacuum cleaners.
Jan Eden Guest
-
James Edward Gray II #6
Re: Relative path
On Jan 19, 2004, at 10:50 AM, Jan Eden wrote:
Unfortunately, I don't believe you can. Sorry.> Can I reinstall Perl (just Perl) from the OS X CDs?>> I imagine you could fix it by upgrading/reinstalling Perl, if you're
>> interested.
>>
James
James Edward Gray II Guest
-
Daniel Staal #7
Re: Relative path
--As off Monday, January 19, 2004 5:50 PM +0100, Jan Eden is alleged
to have said:
--As for the rest, it is mine.> Can I reinstall Perl (just Perl) from the OS X CDs?>> I imagine you could fix it by upgrading/reinstalling Perl, if
>> you're interested.
>>
Yes, if you get the program Pacifist. It can extract partial
installs out of the general installers.
But I'd try a permissions repair first; it often fixes this sort of
thing.
One other thing, perldoc is actually a part of the Developer Tools
(eg, XCode) install, not the normal OS X install. If you haven't
installed that then that could be the problem. (Perl itself is part
of the base system, but you only need the docs if you are a
developer.)
Daniel T. Staal
---------------------------------------------------------------
This email copyright the author. Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes. This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------
Daniel Staal Guest
-
Jan Eden #8
Re: Relative path
Daniel Staal wrote:
Ha! I turned off my computer for two hours and thought about it. Then I remembered installing the devtools but omitting the giant developer tools documentation. I guess that's my problem. Will install the docs tomorrow morning and see if it works.>One other thing, perldoc is actually a part of the Developer Tools
>(eg, XCode) install, not the normal OS X install. If you haven't
>installed that then that could be the problem. (Perl itself is part
>of the base system, but you only need the docs if you are a
>developer.)
>
Thanks Daniel and James for your help.
- Jan
--
Either this man is dead or my watch has stopped. - Groucho Marx
Jan Eden Guest
-
frank #9
relative path
Hi there!
Is it possible to make relative path on images import with " Link to
external file " option???
Any tips or any links??
ps: I'm a poor little beginner in 3D lingo scripting.
frank Guest
-
paul #10
Re: relative path
I'm not quite certain I've read your question correctly, but you may be
looking for this:
the moviepath
or
the applicationpath
or even
importfileinto
"frank" <fjunquas@svenson.gp> wrote in message
news:buh6kr$emd$2@forums.macromedia.com...> Hi there!
>
> Is it possible to make relative path on images import with " Link to
> external file " option???
>
> Any tips or any links??
>
> ps: I'm a poor little beginner in 3D lingo scripting.
>
>
>
paul Guest



Reply With Quote

