Re: scripting adobe illustrator cs3
Re: scripting adobe illustrator cs3
- Subject: Re: scripting adobe illustrator cs3
- From: Rich Simpson <email@hidden>
- Date: Mon, 22 Sep 2008 11:50:55 -0700
well, after some suggestions, I came up with this script:
tell application "Adobe Illustrator"
activate
set thePath to (file path of current document)
save current document
export current document to file ((text 1 thru -4 of thePath) &
".jpg") as JPEG with options {class:JPEG export options, quality:80,
horizontal scaling:50, vertical scaling:50}
end tell
however it fails with an applescript error:
Adobe Illustrator got an error: Can’t get file "Graphics
Dept:Clients:M:Magana Smog Check & Auto Repair:Magana Smog BC.ai".
That is indeed where the file is, but it is a network share, if that
matters...
this seems to happen after it saves, and it is not exporting the jpeg...
any ideas?
-Rich
On Sep 17, 2008, at 2:07 PM, Rich Simpson wrote:
Hi,
I don't know a lot about applescript. but I am trying to create a
simple script that will make adobe illustrator export the current
document as a jpeg file, to the same directory that the original
file resides, with the same name as the original (except with a
".jpg" extension instead of a ".ai") the script should replace an
already existing jpeg file if it exists, and also save the open ai
file at the same time...
I looked through the illustrator applescript reference, but could
not make it work at all...
Any Ideas?
-Rich
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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