Cured: Still, script won't run on an older iMac.

This area contains the messages from the old Yahoo gcmac group after the port.
Post Reply
Robert Poland
Posts: 0
Joined: Sun Jan 03, 2010 3:45 pm

Cured: Still, script won't run on an older iMac.

Post by Robert Poland »

All,Yvan's last suggestion was the cure. set thePath to ((thumbScaledPicFolder as text) & theName) save window 1 in (POSIX path of thePath) The Rational is that this was a GraphicConverter issue and needed to be saved as a POSIX path. Why this only was a problem on an older Mac may never be known.On Oct 24, 2010, at 7:44 AM, KOENIG Yvan wrote: Really odd.(1) the dictionary states : alias(2) on my imac 21.5" (late 2009), it behaves flawlessly.(3) replacesave window 1 in (destFile as string)orsave window 1 in (destFile as alias)bysave window 1 in (POSIX path of destFile)Remember that you must replace the original :set destFile to destFldr & theNamebyset destFile to destFldr & theNameYvan KOENIG (VALLAURIS, France) dimanche 24 octobre 2010 15:44:24Le 24 oct. 2010 a� 14:38, Robert Poland a ecrit :Yvan,I tried that (as alias) on the 27" iMac and got the error; "GraphicConverter got an error: Can't make  alias into type constant".Got this from Thorsten at GraphicConverter; "You have to use POSIX path names i.e. /volumes/mac hd/testfolder/test.jpg with the UB version."As soon as I figure out how to deal with that I'll try it..On Oct 24, 2010, at 3:13 AM, KOENIG Yvan wrote:HelloWhat if you replace :save window 1 in (destFile as string)by save window 1 in (destFile as alias)Graphic Converter dictionary states:save v : Save an objectsave specifier : the object to save[in alias] : the file in which to save the objectasPICT/MacPaint/TIFF/GIF/IFF/PCX/IMG/… : the file type of the document in which to save the data[makeCopy boolean] : save a copy of the document without effecting the original[wwwready boolean] : set this option to save the image without a resource→ integer : Result code of saving the objectIf I remember well, on my G5 (before it died) I was forced to coerce this kind of item and I am np longer on my intel inside imac.Yvan KOENIG (VALLAURIS, France) dimanche 24 octobre 2010 10:34:29 _______________________________________________Do not post admin requests to the list. They will be ignored.AppleScript-Users mailing list      (applescript-users@lists.apple.com)Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/ ... etArchives: http://lists.apple.com/archives/applescript-usersThis email sent to rpoland@usa.net Robert Poland - Fort Collins, CO _______________________________________________Do not post admin requests to the list. They will be ignored.AppleScript-Users mailing list      (applescript-users@lists.apple.com)Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/ ... etArchives: http://lists.apple.com/archives/applescript-usersThis email sent to rpoland@usa.net Robert Poland - Fort Collins, CO
Post Reply