Re: Result of Finder's POSIX path of (home as text) ends in slash?
Re: Result of Finder's POSIX path of (home as text) ends in slash?
- Subject: Re: Result of Finder's POSIX path of (home as text) ends in slash?
- From: Philip Aker <email@hidden>
- Date: Sun, 23 Nov 2008 06:22:15 -0800
On 2008-11-23, at 06:11:31, Jerry Krinock wrote: When I run the following script on my Mac,
tell application "Finder" to set posixHome to POSIX path of (home as text)
I get:
"/Users/jk/"
And about a dozen other people around the world have used this script and gotten the same result.
However, according to one user, who fortunately was smart enough to troubleshoot it, the above script does not give him a trailing slash. He apparently gets:
"/Users/wagner"
I believe more consistent behavior can be had by obtaining the path outside a Finder call:
set pp to POSIX path of (path to home folder)
Philip Aker
Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden