• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get UNIX path of selected file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Get UNIX path of selected file (From: Dave Balderstone <email@hidden>)

  • Prev by Date: Re: Renice a script
  • Next by Date: Re: How do you force Finder to update changes in a folder
  • Previous by thread: Re: Get UNIX path of selected file
  • Next by thread: Re: Get UNIX path of selected file
  • Index(es):
    • Date
    • Thread