Re: Posix file (path to user folder) -->> file ":.:Vortex/Users/tim/"
Re: Posix file (path to user folder) -->> file ":.:Vortex/Users/tim/"
- Subject: Re: Posix file (path to user folder) -->> file ":.:Vortex/Users/tim/"
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 30 Apr 2003 21:35:00 -0700
On 4/30/03 9:21 PM, "Timothy Bates" <email@hidden> wrote:
>
Hi there,
>
>
My goal is to ask Safari to open a local html file, so I need to go from
>
"Vortex:Users:tim:Desktop:reading data/data.html"
>
to
>
"file:///Users/tim/Desktop/reading/reading data/data.html"
>
>
To problems are removing the startup disk from the mac hardware path to the
>
unix user-based path, and encoding the bad characters in the name.
>
>
Any clues why the result of the next line has ":.:" prepended?
>
>
Posix file (path to user folder) -->> file ":.:Vortex/Users/tim/"
You've got two errors there: 'Posix file' instead of 'POSIX path of' (you're
trying to get the colon-style path on a path that already has colons, hence
the extra colons) , and the wrong folder (that expression shouldn't even
compile).
POSIX path of (path to current user folder)
>
>
Is there any reference material on the web for this and related tasks?
It's pretty clear in Standard Additions. Or check Release Notes for
AppleScript 1.6.
--
Paul Berkowitz
_______________________________________________
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.