Re: Format of strings when using run script -- ok, next step
Re: Format of strings when using run script -- ok, next step
- Subject: Re: Format of strings when using run script -- ok, next step
- From: Jaime Magiera <email@hidden>
- Date: Tue, 20 May 2003 14:18:04 -0400
On Tuesday, May 20, 2003, at 03:16 AM, Paul Berkowitz wrote:
What do you mean by " load a text applescript into a database"? How
are you
getting the text?
Up until this point, I had been saving various Applescripts as TEXT,
then uploading them to a mysql database via a web form. Then the
"installer" Applescript makes a SOAP call to the server requesting the
above mentioned text strings. After retrieval, the strings are
converted to a compiled script and then stored elsewhere. Basically,
I'm writing a "Script Server" in WebObjects.
The other option would be to load the Applescripts into the database in
binary form. However, then the script needs to be downloaded across the
net, so there are some issues there.
If you've saved the script as a text file and then read it
by the read command, you could use text item delimiters (or 'do shell
script
"tr"') to replace the line endings by "\\r". If there's any chance
that the
script could be longer than 4000 or so lines, you'll need a routine to
deal
with the stack overflow:
Thanks for the code, I'm going to play around with it today.
Jaime
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.