Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Updating an Automator action UI from AppleScript



I asked this on automator-dev, but I don't think anybody is home there.

I'm writing an AppleScript-based Automator action. I have a text field on my Automator action UI, and I want to update the value from the main.applescript. How do I do that?

This gets the value:

   on run { input, parameters }
       set theText to |pathText| of parameters -- gets the value
       ...
   end run


But, I want to do the opposite. I.e,:

   set |pathText| of parameters to "new text" -- does not work, of course

How do I get the text field object? (I've tried saving theObject for later use in a global in the "on wake" handler, but the global does not survive to the "on run" handler.)

Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.