Re: what is Image Capture Scripting?
Re: what is Image Capture Scripting?
- Subject: Re: what is Image Capture Scripting?
- From: deivy petrescu <email@hidden>
- Date: Fri, 2 Sep 2005 22:30:36 -0400
On Sep 2, 2005, at 21:19, Matt Neuburg wrote:
But I can't script *either* of them. Neither Image Capture nor
Image Capture
Scripting is scriptable. m.
Your answer is clearly wrong! The fact that you can not script either
does not mean that those applications are not scriptable:
<script>
set this_item to alias "path to a image file"
set changed_dimension to 500
try
tell application "Image Capture Scripting"
set this_image to open this_item
set the image_width to the «class widt» of this_image
set the image_height to the «class heig» of this_image
-- check initial values
log "width " & image_width &" height " & image_height
close this_image
set this_image to open this_item
«event icasscal» this_image given «class maxi»:
changed_dimension
save this_image in this_item
set the image_width to the «class widt» of this_image
set the image_height to the «class heig» of this_image
close this_image
end tell
return {image_width, image_height}
on error error_message
display dialog "Sorry there was a problem performing this
operation"
return
end try
</script>
Check camera scripts in your library folder.
deivy
_______________________________________________
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