Re: Save command with properties ...
Re: Save command with properties ...
- Subject: Re: Save command with properties ...
- From: Jay Louvion <email@hidden>
- Date: Wed, 11 Oct 2006 12:55:10 +0200
- Thread-topic: Save command with properties ...
Title: Re: Save command with properties ...
On 10.10.2006 13:59, "Bilancino" <email@hidden> spake thus:
Hi guys! Probably it should appear a stupid question but I'm a newby in applescript... so... I've got a problem compiling the script down here (not only one really...)
Whis I'm not be able to set the properties of the save command in photoshop? Probably it's a very simple error but I can't find it!
Thank you very much
tell application "Adobe Photoshop CS2"
set quality of JPEG save options to 10
open file immagine
set immagine to document 1
set immagine to save document 1 in "Macintosh HD:Users:palluan:Desktop" as JPEG with properties {quality:10}
return path of immagine
end tell
Antonio
Hi there,
I think one of your main problems comes from the fact you are not saving to the Desktop but trying to save your file as the desktop. (i.e. A file called “desktop” in your user folder – but that’s just not possible, the desktop is system-protected). I would try playing around with these three lines to grasp the concept:
set desktopfolder to path to desktop folder as text
tell application "Adobe Photoshop CS2"
...
set docRef to current document
set SmallIntroImage to (desktopfolder & outPutFileName as string)
save docRef in file SmallIntroImage as JPEG with icon —notice the “in file”
...
end tell
j.
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
skypeme:
jaylouvion
www.studiocasagrande.com
P Please consider the environment before printing this email.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden