• 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
path to applications folder in 10.9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

path to applications folder in 10.9


  • Subject: path to applications folder in 10.9
  • From: "koenig.yvan" <email@hidden>
  • Date: Sun, 27 Oct 2013 14:10:19 +0100

Did some of you ran such a simple instruction under 10.9 ?

(path to applications folder)

Here the log report is :

tell current application
path to At Ease applications folder
--> alias "Macintosh HD:Applications:"
end tell

I never saw the "At Ease" component in the executed instruction.

------------------------------------------------------------

I tried the new syntax :

use scripting additions
(path to applications folder)

and got

tell current application
path to At Ease applications folder
--> alias "Macintosh HD:Applications:"
end tell

------------------------------------------------------------

As the game seems interesting we continue with:

tell application "TextEdit"
(path to applications folder)
end tell

which return

tell application "TextEdit"
path to At Ease applications folder
--> error number -1708
«event ascrgdut»
--> error number -1708
path to At Ease applications folder
--> alias "Macintosh HD:Applications:"
end tell

------------------------------------------------------------

one more test with:

tell application "Finder"
(path to applications folder)
end tell

here is the log at 2nd run:

tell application "Finder"
path to At Ease applications folder
--> alias "Macintosh HD:Applications:"
end tell

I got the two errors at first run but I failed to copy the log report.

------------------------------------------------------------

one more time :

tell application "System Events"
(path to applications folder)
end tell

Bingo, this one give the good old behavior :

tell application "System Events"
path to applications folder
--> error number -1708
«event ascrgdut»
--> error number -1708
path to applications folder
--> alias "Macintosh HD:Applications:"
end tell

which become :

tell application "System Events"
path to applications folder
--> alias "Macintosh HD:Applications:"
end tell

at 2nd and higher calls.

------------------------------------------------------------

Is one of you (maybe more) able to explain what appears to the old ape as an odd behavior ?

Yvan KOENIG (VALLAURIS, France) dimanche 27 octobre 2013 14:09:35





 _______________________________________________
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: path to applications folder in 10.9
      • From: Shane Stanley <email@hidden>
    • Re: path to applications folder in 10.9
      • From: Deivy Petrescu <email@hidden>
    • Re: path to applications folder in 10.9
      • From: 2551 <email@hidden>
  • Prev by Date: How To Save Mail Window as RTF?
  • Next by Date: convert a script to 10.9
  • Previous by thread: How To Save Mail Window as RTF?
  • Next by thread: Re: path to applications folder in 10.9
  • Index(es):
    • Date
    • Thread