• 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: I made a nightmare
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I made a nightmare


  • Subject: Re: I made a nightmare
  • From: Christopher Stone <email@hidden>
  • Date: Wed, 09 Dec 2015 09:06:35 -0600

On Dec 09, 2015, at 07:46, Yvan KOENIG <email@hidden> wrote:
I’ running under 10.11.2

I try to run this simple script :
______________________________________________________________________

Hey Yvan,

I don't know if this is different behavior or not, but perhaps someone still on Yosemite or earlier can check.

Here we're accessing the posix path property of a disk item:

set f to ((path to desktop as text) & "formoosmahna:")
tell application "System Events"
  POSIX path of alias f --> WORKS
  POSIX path of item f --> WORKS
  POSIX path of f --> FAILS
end tell

Here we're coercing an HFS path string to a posix path string:

set f to ((path to desktop as text) & "formoosmahna:")
POSIX path of f --> WORKS

<shrug>

--
Take Care,
Chris
__________________________________________________________________
{ MacBookPro6,1 · 2.66 GHz Intel Core i7 · 8GB RAM · OSX 10.11.2 }

 _______________________________________________
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: 
 >I made a nightmare (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: I really need some help
  • Next by Date: Re: I made a nightmare
  • Previous by thread: I made a nightmare
  • Next by thread: Re: I made a nightmare
  • Index(es):
    • Date
    • Thread