• 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: What is the limit on osascript command ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the limit on osascript command ?


  • Subject: Re: What is the limit on osascript command ?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 9 Apr 2008 13:21:48 -0400

Huh?  The contents of a here document are not processed as commands.
It's essentially a giant double-quoted string. Now if you have `...`
or $(...) In there, sure, that's a shell command.. You can quote the
terminator to get it to not do interpolation, but presumably doing
interpolation is the whole point in this case...




On 4/9/08, Doug McNutt <email@hidden> wrote:
> 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
>

--
Sent from Gmail for mobile | mobile.google.com

Mark J. Reed <email@hidden>
 _______________________________________________
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

  • Follow-Ups:
    • Re: What is the limit on osascript command ?
      • From: Christopher Nebel <email@hidden>
References: 
 >What is the limit on osascript command ? (From: Paul Taylor <email@hidden>)
 >Re: What is the limit on osascript command ? (From: Philip Aker <email@hidden>)
 >Re: What is the limit on osascript command ? (From: Paul Taylor <email@hidden>)
 >Re: What is the limit on osascript command ? (From: "Mark J. Reed" <email@hidden>)
 >Re: What is the limit on osascript command ? (From: Paul Taylor <email@hidden>)

  • Prev by Date: Re: What is the limit on osascript command ?
  • Next by Date: Re: What is the limit on osascript command ?
  • Previous by thread: Re: What is the limit on osascript command ?
  • Next by thread: Re: What is the limit on osascript command ?
  • Index(es):
    • Date
    • Thread