• 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: mac to unix path names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mac to unix path names


  • Subject: Re: mac to unix path names
  • From: John Delacour <email@hidden>
  • Date: Sat, 3 May 2003 02:49:11 +0100
  • Mac-eudora-version: 6.0a16

At 2:43 pm -1000 2/5/03, Reinhold Penner wrote:

No, actually I construct the path like this:

set applSup to ((path to application support from user domain) as text)

So may be I should use "as Unicode text" instead?

It makes no difference. I don't like 'as text' but it works fine in this case. Even more I don't like spaces in file names -- I'm joining the aliens :-) -- and that's your problem I guess. If you make sure to get the thing quoted properly, you'll have no problem.

Of course, 'quoted form' is no good if Madam calls her disk Madam's Hard Disk; then you have to use escaped double quotes, and if she calls it Madam's "Hard Disk"... ah well, time for bed.

tell application "Finder"
set f to item 1 of (get selection) as text
--> "dx:Users:jd:tr<egrave>s dur:"
set pp to POSIX path of f
--> "/Users/jd/tr<egrave>s dur/"
do shell script "open " & quoted form of pp
-- works fine
end tell

JD
_______________________________________________
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.

  • Follow-Ups:
    • Re: mac to unix path names
      • From: Reinhold Penner <email@hidden>
    • Re: mac to unix path names
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: mac to unix path names (From: Reinhold Penner <email@hidden>)

  • Prev by Date: Re: Unicode/UTF confusion
  • Next by Date: Re: Unicode/UTF confusion
  • Previous by thread: Re: mac to unix path names
  • Next by thread: Re: mac to unix path names
  • Index(es):
    • Date
    • Thread