[mac4theblind] Re: 10.6: Create new AppleScript document Service

  • From: Sarah Alawami <marrie12@xxxxxxxxx>
  • To: mac4theblind@xxxxxxxxxxxxx
  • Date: Thu, 24 Mar 2011 22:26:46 -0700

I don't have a need to use it so I can't answer but maybe someone who has used 
this or can use it can let us know.

Take care.
On Mar 24, 2011, at 8:38 PM, John Panarese wrote:

>     This is interesting.  How exactly does it work once you have the workflow 
> created?
> 
> Take Care
> 
> John D. Panarese
> Director
> Mac for the Blind
> john@xxxxxxxxxxxxxxxxxx
> http://www.macfortheblind.com
> 
> AUTHORIZED APPLE STORE BUSINESS AFFILIATE
> MAC VOICEOVER TRAINING AND SUPPORT
> 
> On Mar 24, 2011, at 4:01 PM, Sarah Alawami wrote:
> 
>> YOu can find the hint at the mac osx hints website. I don't have a link at 
>> the moment.
>> 
>> 
>> 
>> 10.6: Create new AppleScript document Service
>> 
>> I 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.
>> 
>> ...
>> 
>> 
>> 
> 
> 



Sarah Alawami

If you  need an edit  done on a small project go to 
http://music.marrie.org/master.html for more info. If you need to contact me my 
info is below.

MSN and AIM: marrie12@xxxxxxxxx

website: http://music.marrie.org
Podcast: http://marrie.podbean.com
youtube: http://youtube.com/marrie125


Other related posts: