Re: What is the limit on osascript command ?
Re: What is the limit on osascript command ?
- Subject: Re: What is the limit on osascript command ?
- From: Doug McNutt <email@hidden>
- Date: Wed, 9 Apr 2008 10:54:34 -0600
At 14:36 +0100 4/9/08, Paul Taylor wrote:
>It didnt work, in fact even with a shorter script that used to work it failed. Im generating the script from within a java program, maybe there is some problem with quoting characters it is very difficult to tell because Applescript appears very sensitive to whitespace never mind control chars. Im going to try writing the script to a file and then using osascript on the file, that should at least remove the quoting of shell characters problem. Sound like a good idea ?
Yes. And your temporary file may never actually get written to disk because of caching.
I donno about bash but tcsh has a problem with osascripts that use the <<EOSCRIPT or "HERE" structure.
If your AppleScript has loops that use reserved words that also exist in the UNIX shell they can get misinterpreted as the HERE document is processed. That can result in a failure of a loop in the shell script. IF is particularly sensitive causing the shell to error when it doesn't find an associated END.
--
--> In Christianity, man can have only one wife. This is known as monotony. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden