AppleScript Lands Too!
Peter Jaros - Thursday, August 09, 2007 at 09:15 PMThe beginnings of the new AppleScript support has landed on trunk and branch! That means you’ll see it in all the nightly builds (trunk, branch). Grab one and open its dictionary in Script Editor. Anything that doesn’t have to do with bookmarks should be implemented and working. For instance, you can say:
set website_listing to ""
tell application "Camino"
repeat with i from 1 to (count browser windows)
set website_listing to website_listing & "Window " & i ¬
& return
repeat with each_tab in tabs of browser window i
set website_listing to website_listing & " " & ¬
(URL of each_tab) & return
end repeat
end repeat
end tell
get website_listing
and get something like this:
Window 1
http://developer.apple.com/reference/Cocoa/idxScripting-date.html
Window 2
http://developer.apple.com/cocoa/applescriptforapps.html
https://bugzilla.mozilla.org/show_bug.cgi?id=385989
Not a terribly interesting example, but it shows off what you can do. Go ahead, be creative! See what cool uses you can come up with. And remember: bookmark support is coming soon.


Smokey Ardisson says:
August 9th, 2007 at 10:41 pmReal live tabs! That now enables me to write one of the four “scriptlets” I had in my wishlist scratchpad