• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Format of strings when using run script -- ok, next step
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Format of strings when using run script -- ok, next step (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: open & close in Finder
  • Next by Date: Re: New!!!
  • Previous by thread: Re: Format of strings when using run script -- ok, next step
  • Next by thread: Handler trouble
  • Index(es):
    • Date
    • Thread