Monday, 28 March 2011

10.6: Create new AppleScript document Service

Snow Leopard only hintI got tired of copy-pasting AppleScripts I found online into the AppleScript Editor, so I made a simple Automator Service to do it for me.

Just launch Automator, choose new service (that receives text), add the Run AppleScript action and replace the script body with this:
 on run {input, parameters}      tell application "AppleScript Editor"     activate     if contents of document 1 is "" then       set contents of document 1 to (input as string)     else       make new document with properties {contents:(input as string)}     end if   end tell      return input end run 
Save it as 'New AppleScript Document with selection' or whatever name you prefer.

...

Add to digg Add to Reddit Add to Slashdot Email this Article Add to StumbleUpon

Source: http://feeds.macosxhints.com/click.phdo?i=a097ba8516e864b9d442c19b156b5c2d

mac protection apple hot news remote desktop macrumor

No comments:

Post a Comment