Image Events problem
Image Events problem
- Subject: Image Events problem
- From: Simon Whitaker <email@hidden>
- Date: Fri, 15 Sep 2006 05:52:39 +0100
Hi there,
A customer of mine gets an error when running an Applescript that
converts a JPEG into a PICT file. Here's a code snippet that
illustrates the problem:
try
set _jpeg_file to (path to desktop as string) & "test.jpg"
set _pict_file to (path to desktop as string) & "test.pict"
tell application "Image Events"
launch
set image_data to open file _jpeg_file
tell application "Finder" to set new_item to _pict_file
save image_data in new_item as PICT
close image_data
end tell
on error e
return {e, number of e}
end try
When he runs the code (assume ~/Desktop/test.jpg exists), he gets the
following output:
{"NSInternalScriptError", 21}
He's running OS X 10.3.9 and (therefore?) has Image Events 1.0.
Any ideas? This bit of code runs inside a Cocoa app I produce, and no
other customer has reported this problem so far - I have a few
hundred users. I know that at least some of them are also on 10.3.9.
All the best,
Simon
_______________________________________________
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