• 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: symlinks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: symlinks


  • Subject: Re: symlinks
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 13 Aug 2010 18:24:50 -0500

On Aug 13, 2010, at 4:36 PM, Luther Fuller wrote:
After experimenting with this for awhile, I found that 'hfsPath' isn't really an hfs path.
I've broken the example into steps, as follows:

alias "OS_X:Users:lutherfuller:Desktop:symlink Testing:TEST-FOLDER"
set posixPath to (quoted form of (POSIX path of the result))
posixPath as text --> '/Users/lutherfuller/Desktop/symlink Testing/TEST-FOLDER/'
the result as POSIX file --> file ":':Users:lutherfuller:Desktop:symlink Testing:TEST-FOLDER:'"
the result as text --> :':Users:lutherfuller:Desktop:symlink Testing:TEST-FOLDER:'
the result as alias --> Error: file :':Users:lutherfuller:Desktop:symlink Testing:TEST-FOLDER:' wasn't found.
log the result

I've just noticed something that may be important. If I remove the phrase 'quoted form of ' from the script above, I don't get the error in the next-to-last line. I've tested this from the startup disk (desktop) and from another disk. Both times I got a valid alias in the last line.

I also renamed "TEST-FOLDER" ---> "TEST FOLDER", still worked.

Perhaps 'quoted form of ' is only necessary when using 'do shell script ...' (?)
(I never use posix path with anything other than do shell script. Perhaps this is an example of a good habit going bad. ?:)

 _______________________________________________
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: symlinks
      • From: Luther Fuller <email@hidden>
    • Re: symlinks
      • From: "Mark J. Reed" <email@hidden>
    • Re: symlinks
      • From: Shane Stanley <email@hidden>
References: 
 >symlinks (From: Luther Fuller <email@hidden>)
 >Re: symlinks (From: Emmanuel LEVY <email@hidden>)
 >Re: symlinks (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: symlinks
  • Next by Date: Re: symlinks
  • Previous by thread: Re: symlinks
  • Next by thread: Re: symlinks
  • Index(es):
    • Date
    • Thread