Shell Scripting / Illustrator Question
Shell Scripting / Illustrator Question
- Subject: Shell Scripting / Illustrator Question
- From: Rob Stott <email@hidden>
- Date: Tue, 1 Jun 2004 16:52:51 +0100
Hi all,
I'm having a bit of a problem with a script I'm writing. I want to read
an Illustrator CS file using a shell script, then write it back to a
new file, again using a shell script.
Needless to say, in the middle I'll eventually be doing some bits and
bobs to the file which is why I'm not using 'mv'. At the moment just
reading and writing is causing me problems.
Although I'm quite happy with AppleScript, UNIX is newish to me so I
guess I'm probably making a daft mistake.
Can anyone see what's wrong with this...
--this line reads an existing file
set theRawIllustratorData to (do shell script "cat
/Users/admin/Desktop/sourcefile.ai")
--this line writes it to a new file
do shell script "touch /Users/admin/Desktop/test.ai; echo " & (quoted
form of theRawIllustratorData) & " > /Users/admin/Desktop/test.ai"
...i get the error...
sh: -c: line 1: unexpected EOF while looking for matching `''
sh: -c: line 2: syntax error: unexpected end of file
...the Illustrator is just a blank A4 document.
Can anyone give me any advice on this one?
Thanks in advance
Rob
_______________________________________________
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.