Re: GraphicConverter: save in alias, alias ignored
Re: GraphicConverter: save in alias, alias ignored
- Subject: Re: GraphicConverter: save in alias, alias ignored
- From: Simon Forster <email@hidden>
- Date: Tue, 2 Mar 2004 16:16:40 +0000
On 2 Mar 2004, at 15:13, Walter Ian Kaye wrote:
I'm trying to script GC, but when I tell it to save a window in a
file, it instead saves it into the original file, overwriting it. :/
Raiding the pantry:
--Saves frontmost window to file "theFile" as jpeg
--PicSaveJPEG("Warwick:Users:simonfor:Desktop:test.jpg")
--Returns true if successful
on PicSaveJPEG(theFile)
try
tell application "GraphicConverter" to save window 1 in theFile as
JPEG with wwwready
on error
return false
end try
return true
end PicSaveJPEG
HTH
Simon Forster
_____________________________________________________
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247
_____________________________________________________
_______________________________________________
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.