HC with AppleScript -> Rev with Applescript
Posted: Wed Jun 03, 2009 4:23 am
I have a number of HC stack that I need to get out of Classic to run on new hardware as old hardware it getting harder to find.
In my stacks, I have loaded Applescripts into the stack script as a bunch of functions that except parameters. I then link those stacks (start using) to all my others so that I do not need to put the Applescript code in everything.
The Applescript code, talks to Quark Express, Sql Grinder, Distiller, url scripting and a couple of other apps.
I have an older version of Rev (DreamCard 2.5.#) that I want to use as a first step to get me to the newer hardware.
How do I replicate the functionality of storing Applescript functions in a stack and calling them, passing in parameters?
Do I create a function and build the Applescript command as a text string, and then execute it within the function? What kind of preformance hit it there compiling the code to run each time as I will be calling it 100's of times to produce the products.
I know some functionality Rev can replace, like the stuff done by url scripting, and possibly Sql Grinder to get to the database.
Is there a resource somewhere that has some examples of this sort of thing?
Thanks
Lloyd
In my stacks, I have loaded Applescripts into the stack script as a bunch of functions that except parameters. I then link those stacks (start using) to all my others so that I do not need to put the Applescript code in everything.
The Applescript code, talks to Quark Express, Sql Grinder, Distiller, url scripting and a couple of other apps.
I have an older version of Rev (DreamCard 2.5.#) that I want to use as a first step to get me to the newer hardware.
How do I replicate the functionality of storing Applescript functions in a stack and calling them, passing in parameters?
Do I create a function and build the Applescript command as a text string, and then execute it within the function? What kind of preformance hit it there compiling the code to run each time as I will be calling it 100's of times to produce the products.
I know some functionality Rev can replace, like the stuff done by url scripting, and possibly Sql Grinder to get to the database.
Is there a resource somewhere that has some examples of this sort of thing?
Thanks
Lloyd