MACSCRPT Archives

June 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 26 Jun 2007 19:39:24 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
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.

ATOM RSS1 RSS2