Tuesday, November 21, 2017
  • Index
  •  » Automator
  •  » Action to store and retrieve variables - needs work

#1 2005-05-14 07:00:06 pm

rharder
Member
Registered: 2005-05-14
Posts: 1

Action to store and retrieve variables - needs work

I've got two actions that store and retrieve arbirtrary "results" as variables so you can pick them up and reuse them in later steps in a workflow (for that matter, I think the variables are "valid" until you log out and log in again).

http://iharder.sourceforge.net/macosx/a … Action.zip

I need some some help with them from some Applescript pros. When the stored variable is something specific to an application, like a list of contacts from Address Book, the script fails when reading the object back from disk. In Script Editor, I can get around this by telling Address Book to do the read operation, but this doesn't work for general purpose store/retrieve variable actions.

Any help? The code's public domain, so do what you want.

-Rob

Offline

 

#2 2005-05-24 02:41:53 pm

Nyhthawk
Member
Registered: 2005-05-22
Posts: 2

Re: Action to store and retrieve variables - needs work

There are a couple options for storing and retrieving data during a workflow:

1) Have your action write the info using the CLI user defaults command: do shell script "defaults write filepath/path/path preftowrite pref value. Then have a following action read the data back from the file

2) Use the new Data Events application to create an SQLite database on the fly and have the other actions read from it.

Offline

 
  • Index
  •  » Automator
  •  » Action to store and retrieve variables - needs work

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)