use vs. Scripting Additions
use vs. Scripting Additions
- Subject: use vs. Scripting Additions
- From: Mitchell L Model <email@hidden>
- Date: Sat, 28 May 2016 19:13:17 -0400
This has probably been discussed before on this list, but maybe this reminder will be useful to some people. I started using “use” instead of loading script libraries by path into properties. Some weird things started happened, but unfortunately quite bit after I had made that change to one of my scripts so I didn’t associate them with my change to “use". AppleScript no longer understood commands as basic as “display alert”. Well, it turns out (10.10 and later) that once you have a “use” statement, the any Scripting Additions — Standard Additions in particular — will not get loaded unless you include
use scripting additions
in your script. I don’t see any reason not to do that, especially as you are transitioning to using “use”, because there’s a lot in Standard Additions that you are so used to using that you may not realize they aren’t in AppleScript per se.
_______________________________________________
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