• 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: Reinhold Penner <email@hidden>
  • Date: Fri, 2 May 2003 17:23:00 -1000

JD,

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

It makes no difference.

I know, I tried it.

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.

No, the spaces never cause any problems when you use quoted form.

If you make sure to get the thing quoted properly, you'll have no problem.

But I do (well, the French user does)

Of course, 'quoted form' is no good if Madam calls her disk Madam's Hard Disk;

No, quoted form handles that very well.

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:"

I know, I can reproduce that. It works fine for me. However, my French user has a HD that contains an <egrave>. It seems as if the quoted form somehow fails when the hard disk name contains an <egrave>.

set pp to POSIX path of f
--> "/Users/jd/tr<egrave>s dur/"
do shell script "open " & quoted form of pp
-- works fine

Yep, this is all fine and dandy. I am just reporting what the French user reported. As soon as he renamed his disk, the quoted form path resolved...

end tell

you tell me ;-)

-Reinhold
_______________________________________________
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: mac to unix path names (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Any comments?
  • Next by Date: Re: Any comments?
  • Previous by thread: Re: mac to unix path names
  • Next by thread: Re: mac to unix path names
  • Index(es):
    • Date
    • Thread