Applescripting Automator.

Discussion in 'AppleScript' started by aaabha, Aug 19, 2010.

  1. aaabha

    aaabha New Member

    Joined:
    Jun 26, 2010
    Messages:
    24
    Likes Received:
    0
    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
    .
     
    aaabha, Aug 19, 2010
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. jkevinwolfe

    Applescripting Automator

    jkevinwolfe, Sep 22, 2005, in forum: AppleScript
    Replies:
    6
    Views:
    2,326
    jkevinwolfe
    Oct 5, 2005
  2. zeyhra

    Applescripting for Entourage

    zeyhra, Mar 29, 2006, in forum: AppleScript
    Replies:
    3
    Views:
    1,303
  3. zeyhra
    Replies:
    0
    Views:
    1,396
    zeyhra
    Jun 8, 2006
  4. Lawson English

    applescripting internet

    Lawson English, Sep 6, 2006, in forum: Programmer Help
    Replies:
    3
    Views:
    261
    Simon Slavin
    Sep 8, 2006
  5. Lawson English

    applescripting internet

    Lawson English, Sep 6, 2006, in forum: Programmer Misc
    Replies:
    3
    Views:
    328
    Simon Slavin
    Sep 8, 2006
  6. Chap Harrison

    Basic docs for applescripting FileMaker Pro?

    Chap Harrison, Jan 15, 2004, in forum: AppleScript
    Replies:
    1
    Views:
    193
    Patrick Stadelmann
    Jan 15, 2004
  7. phatnugs420@comcast.net

    Newbie Questions: Applescripting TextEdit

    phatnugs420@comcast.net, Jun 19, 2004, in forum: AppleScript
    Replies:
    7
    Views:
    211
    Jerry Kindall
    Jun 29, 2004
  8. Sam P

    applescripting Save As PDF...

    Sam P, Jul 7, 2004, in forum: AppleScript
    Replies:
    9
    Views:
    266
    Øyvind Rise
    Jul 10, 2004
Loading...