• 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: Image Capture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image Capture


  • Subject: Re: Image Capture
  • From: Andrew Oliver <email@hidden>
  • Date: Mon, 24 Jan 2005 21:41:54 -0800

On 1/24/05 9:30 PM, "Andrew C. Bairnsfather" <email@hidden> wrote:

> I searched the archives and posted to the Discussion forums (AppleScript and
> 10.3 Customization).  In the archives I found one question like mine, back in
> 2002, but no answer.
>
> http://lists.apple.com/archives/applescript-users/2002/Jun/msg00636.html
>
> I wrote this script to automatically unmount the camera chip and quit Image
> Capture.  The idea being that once the images have been downloaded all I have
> to do is unplug the USB cord.
>
> tell application "Finder"
> try
> eject "CHIP_NAME"
> on error
> -- Oops.
> end try
> end tell
>
> delay 1
>
> tell application "Image Capture"
> try
> quit
> on error
> -- Oops.
> end try
> end tell
[snip]

Rule 1 when debugging: remove any and all 'try/end try' statements.

That way the script will fail and post a dialog noting the error. While it
probably doesn't solve the problem it should hint where to start looking.

I'd hazard a guess that the problem relates to the Finder not being able to
eject a string (which is what your disk is trying to do). It might be worth
trying:

 ...
     eject disk "CHIP_NAME"
 ...

Andrew
:)

 _______________________________________________
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

  • Follow-Ups:
    • Re: Image Capture
      • From: "Andrew C. Bairnsfather" <email@hidden>
References: 
 >Image Capture (From: "Andrew C. Bairnsfather" <email@hidden>)

  • Prev by Date: Re: Applescript bug?
  • Next by Date: Re: Reading a pdf text file
  • Previous by thread: Image Capture
  • Next by thread: Re: Image Capture
  • Index(es):
    • Date
    • Thread