Re: Get UNIX path of selected file
Re: Get UNIX path of selected file
- Subject: Re: Get UNIX path of selected file
- From: Matthew Stuckwisch <email@hidden>
- Date: Wed, 3 Apr 2002 20:17:29 -0600
Shane Stanley's use of 'quoted form' seems to avoid problems with spaces
in
paths passed to the terminal, so I've adapted my effort to include that.
I'm
just scrabbling around in the dark really, but thanks for your kindish
words.
That it does.
It does. As well, in the Terminal you just have to encase things in
quotes.
[localhost:~] guifa% cd Documents/
[localhost:~/Documents] guifa% cd Word Processing
cd: Too many arguments.
[localhost:~/Documents] guifa% cd "Word Processing/"
[localhost:~/Documents/Word Processing] guifa%
However, this denies the usage of wildcards (in case anyone out there
other than me uses them :P ), note the difference below with quotes and no
quotes.
[localhost:~/Documents] guifa% cd "Word*"
Word*: No such file or directory.
[localhost:~/Documents] guifa% cd Word*
[localhost:~/Documents/Word Processing] guifa%
I haven't gotten around to playing with accented characters yet. (Right
now) I think for heavy shell/Terminal.app scripting, the best way is to
replace all characters in the path that aren't "normal" with an asterik
(including spaces), this should work 99% of the time.
Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa / G}(esperNET / irc.massinova.com)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.