Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use AppleScript as a simple calculator' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use AppleScript as a simple calculator
Authored by: adrianm on Aug 11, '04 02:12:22PM
This is a less useful part of a more useful and very well known hint using services: Type
(663 * 24) / 2
into any text field, say in Text Edit, and select it, then
cmd+*
(Services menu, Script Editor, Get Result Of AppleScript). Text is replaced with
7956.0
Of course, if you know applescript expressions, you can do some fairly clever things....

[ Reply to This | # ]
examples...
Authored by: adrianm on Aug 11, '04 02:26:59PM
for example:
tell application "Finder" to get name of every disk
or
(current date) as string


[ Reply to This | # ]
Use AppleScript as a simple calculator
Authored by: timcrawf on Aug 12, '04 08:44:34AM

but make a note to yourself command * is really
command-shift-8
Also, this will launch Script Editor



[ Reply to This | # ]
Use AppleScript as a simple calculator
Authored by: adrianm on Aug 12, '04 01:50:02PM

cmd+* for me is cmd key plus the * key (on the numeric keypad).

Yes, it does start script editor, but then the original hint required you to type the expression into it.



[ Reply to This | # ]