• 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: Snow Leopard AppleScript Release Notes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Snow Leopard AppleScript Release Notes


  • Subject: Re: Snow Leopard AppleScript Release Notes
  • From: Deivy Petrescu <email@hidden>
  • Date: Fri, 28 Aug 2009 15:41:00 -0400


On Aug 28, 2009, at 2:07 PM, Jon Pugh wrote:

The Snow Leopard 10.6 AppleScript Release notes are up:

<http://developer.apple.com/mac/library/releasenotes/ScriptingAutomation/RN-AppleScriptSL/index.html >

Summary:

	Date handling changes
	Scripting Addition thread safety changes
	Security changes
	AppleScript / Objective C bridge changes

Enjoy.

Jon



Some other notes....

Script Editor no more, for now on AppleScript Editor and it resides in the Utilities folder.

Both applications have the same icon, so if one is running SL and Leopard, be careful.

In spite of being renamed, in /Library/Scripts/ the folder is still named Script Editor Script.s

Do not rename it or you will not be able to use it in AppleScript Editor.

AS is significantly faster.

Now even if you forgot to use the log pane you can always view the log if you click on the "Events" button and you can see the whole log story of the script.

When one upgrades from Leo to SL some of the scripts in folders inside /Library/Scripts/ are deleted.
Make sure you have a backup of those scripts.
Namely:
Address Book
Basics
Finder Scripts
Folder Actions Scripts
Info Scripts
Internet Services
Navigation Scripts
URLs



If you pass the mouse over the events pane you can get a yellow window that has raw apple events information.
It has the bad habit of sticking around longer than one wants.


There  is a problem with SL when it is  deals with negative dates.
For instance


set l to current date set m to l -1*days

(m-l)/(1*days)
---> 4.97092696296296E+4

Note that it is positive and huge!

On the other hand

(l-m)/(1*days)
-->1.0


Finally, not exactly AS but since many people do not like to use the Finder for such, the shell command "ls" now has two new options, U and u.
Those sort files as time of last access (u), and time of file creation (U). Both must be used in conjunction with the option t.
That is ls -Ut or ls -tU


Hope this helps.


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
  • Follow-Ups:
    • Re: Snow Leopard AppleScript Release Notes
      • From: Christopher Nebel <email@hidden>
References: 
 >Snow Leopard AppleScript Release Notes (From: Jon Pugh <email@hidden>)

  • Prev by Date: Snow Leopard AppleScript Release Notes
  • Next by Date: Re: Snow Leopard AppleScript Release Notes
  • Previous by thread: Snow Leopard AppleScript Release Notes
  • Next by thread: Re: Snow Leopard AppleScript Release Notes
  • Index(es):
    • Date
    • Thread