• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: what is Image Capture Scripting?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: what is Image Capture Scripting? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: still having trouble with SOAP
  • Next by Date: Re: still having trouble with SOAP
  • Previous by thread: Re: what is Image Capture Scripting?
  • Next by thread: Re: what is Image Capture Scripting?
  • Index(es):
    • Date
    • Thread