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 Numbers '09? Chris Schram AppleScript 22 13th February 2009 08:30 PM
Applescripting VLC Une bévue AppleScript 5 5th July 2006 10:09 AM
Filemaker scripting/Applescripting/Automator zeyhra AppleScript 0 8th June 2006 02:16 AM
Applescripting Automator jkevinwolfe AppleScript 6 5th October 2005 11:03 AM
Applescripting Applescript Diccon Towns AppleScript 4 4th December 2004 03:52 PM


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


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
How do I Delete iTunes Library?
Arthur09 (4 Minutes Ago, 10:32 PM)

2009 Macbook Pro Issues
Art4261 (9 Hours Ago, 01:37 PM)

imac won't start
jmkwills (17 Hours Ago, 05:15 AM)

Safari not loading certain sites
seanv (20 Hours Ago, 01:59 AM)

Repair tool for iphoto
dollop46 (1 Day Ago, 08:25 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51