Mac Help Forums


Reply
Thread Tools Display Modes

Applescripting Automator.

 
Member
Join Date: Jun 2010
Posts: 24
 
      19th August 2010
I am starting to work with applescripting Automator apps when I suddenly realized I don't speak applescript. So I beg for help.

I'd like to make a simple automator app that reads the word count from the clipboard.

I know that automator likes

"on run {input, parameters}" to start an applescript and

" return input
end run" to end it. The questions become:

What input and parameters need to be set for the clipbard?
What should the script do to count the words?
Once I have a number, how do I display it?

I found snippet of code that does this in applescript and displays a dialog box:

set myclip to the clipboard as string
set the reportnum to the count of words in myclip
(display dialog) & reportnum & " words"

But how can these functions be used in an Automator applescript?

And is there a way to make an automator dialog pop up and disappear after 5 seconds without clicking on it?

Thank you,

Kevin
.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
applescripting internet Lawson English Programmer Help 3 8th September 2006 10:39 PM
applescripting internet Lawson English Programmer Misc 3 8th September 2006 10:39 PM
Filemaker scripting/Applescripting/Automator zeyhra AppleScript 0 8th June 2006 02:16 AM
Applescripting for Entourage zeyhra AppleScript 3 29th March 2006 09:13 PM
Applescripting Automator jkevinwolfe AppleScript 6 5th October 2005 11:03 AM


All times are GMT +1. The time now is 11:40 AM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Weird tab appearing on all videos on the internet.
stefenymarie (6 Hours Ago, 05:20 AM)

Open Links in Multiple cells in Multiple Web Browser Tabs
ElectricBlue (10 Hours Ago, 01:10 AM)

potential source of infection
walkerlaw (11 Hours Ago, 12:14 AM)

Java
pieinthesky (16 Hours Ago, 07:29 PM)

Extract Attachments from PDF file(s)
Dasman207 (19 Hours Ago, 03:51 PM)