• 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
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]

Result of Finder's POSIX path of (home as text) ends in slash?


  • Subject: Result of Finder's POSIX path of (home as text) ends in slash?
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 23 Nov 2008 06:11:31 -0800

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"

OK, so I'll add a line to check for the slash. But why might this happen? His System Profile looks like that of a regular MacBook Pro to me:

      Model Name: MacBook Pro 15"
      Model Identifier: MacBookPro2,2
      Processor Name: Intel Core 2 Duo
      Processor Speed: 2.33 GHz
      Number Of Processors: 1
      Total Number Of Cores: 2
      L2 Cache: 4 MB
      Memory: 3 GB
      Bus Speed: 667 MHz
      Boot ROM Version: MBP22.00A5.B07
      SMC Version: 1.12f5
      Sudden Motion Sensor:
          State: Enabled
      System Version: Mac OS X 10.5.5 (9F33)
      Kernel Version: Darwin 9.5.0
      Time since boot: 2:22

Thank you,

Jerry Krinock
_______________________________________________
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: Deivy Marck Petrescu <email@hidden>
    • Re: Result of Finder's POSIX path of (home as text) ends in slash?
      • From: "Mark J. Reed" <email@hidden>
    • Re: Result of Finder's POSIX path of (home as text) ends in slash?
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Can't Remove Photos from iPhoto Slideshow using AppleScript / Scripting Bridge
  • Next by Date: Re: Result of Finder's POSIX path of (home as text) ends in slash?
  • Previous by thread: Re: A puzzle (summary)
  • Next by thread: Re: Result of Finder's POSIX path of (home as text) ends in slash?
  • Index(es):
    • Date
    • Thread