• 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: Deivy Marck Petrescu <email@hidden>
  • Date: Mon, 24 Nov 2008 18:04:25 -0500


On Nov 23, 2008, at 9:11 AM, 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"

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

Jerry, I saw you got a way around this problem. But as a matter of curiosity, what happens if he uses:

path to "cusr"  -- Current USeR

?

Deivy Petrescu
email@hidden



_______________________________________________
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
References: 
 >Result of Finder's POSIX path of (home as text) ends in slash? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: 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: Re: Result of Finder's POSIX path of (home as text) ends in slash?
  • Next by thread: Extract URL from Mail.app Message and download .tar file
  • Index(es):
    • Date
    • Thread