Re: applescripting the calculator
Re: applescripting the calculator
- Subject: Re: applescripting the calculator
- From: tom wible <email@hidden>
- Date: Thu, 25 Jan 2007 19:18:46 -0500
didn't work if calculator wasn't already running, then it bombed on the
activate, then it bombed on the 'as number' inside the finder tell...
this works:
tell application "Calculator" to activate
tell application "System Events" to tell process "Calculator"
tell group 1 of window 1
click button "Clear"
click button "9"
click button "plus"
click button "5"
click button "Equals"
end tell
keystroke "c" using {command down}
end tell
set x to (the clipboard) as number
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden