• 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: Result of Finder's POSIX path of (home as text) ends in slash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
echo email@hidden@nl | tr a-z@. p-za-o.@

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

  • Follow-Ups:
    • Re: Result of Finder's POSIX path of (home as text) ends in slash?
      • From: Jerry Krinock <email@hidden>
References: 
 >Result of Finder's POSIX path of (home as text) ends in slash? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Result of Finder's POSIX path of (home as text) ends in slash?
  • Next by Date: Re: Can't Remove Photos from iPhoto Slideshow using AppleScript / Scripting Bridge
  • Previous by thread: Result of Finder's POSIX path of (home as text) ends in slash?
  • Next by thread: Re: Result of Finder's POSIX path of (home as text) ends in slash?
  • Index(es):
    • Date
    • Thread