On Jun 26, 2007, at 5:08 PM, john darnell wrote:
> I have an Applescript that has this line of code in it:
>
> do shell script shellscripttext
>
> When shellscripttext is examined, it contains this:
>
> zip -g -r -v /Volumes/programbkup/John/Mac/20070626/
> FridayBackup_20070626.zip -x \*.o /source\ code/InDesign\ CS3/*
>
> This linen of code causes the Applescript to fail.
Do shell script executes things using the sh shell. sh unlike bash
doesn't expand wildcards.
You will either need to put it into a shell script that has a #!/bin/
bash at the top or build a list of all the files manually.
My script-fu is weak or I would be able to give a good shell script
solution.
-Mark
New Eureka coming in 2 weeks.