Re: Image Capture
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
References: | |
| >Image Capture (From: "Andrew C. Bairnsfather" <email@hidden>) |