Adrian Tuddenham wrote:
> Patrick Stadelmann wrote:
>
> > In article
> > ,
> > adrian.TakeThisOut@poppyrecords.invalid.invalid (Adrian Tuddenham) wrote:
> >
> > > I am trying to write an Applescript for Graphic Converter v4.4 on
> > > OS8.6 to generate icons of .jpeg files. The test script below will run
> > > and open the file, but fails to create an icon.
> >
> > This should work :
> >
> > tell application "Finder"
> > select file "IMG_0378.JPG" of folder "Picture hold" of folder ¬
> > "GraphicConverter 4 US PPC" of folder "Applications" of startup disk
> > set XXX to selection as alias
> > tell application "GraphicConverter PPC"
> > create icon of XXX
> > end tell
> > end tell
> >
>
> Many Thanks. I've been a whole day trying to make that work.
Can I trouble you one more time please?
I have been copying files from a camera SD card which appears as a disk
on the desktop. At the end of the downloading program I tried using the
command:
eject disk <diskname>
When I ran the script, it gave the usual message: "You may now remove
the cartridge from the USB device "Generic STORAGE DEVICE " because your
Macintosh is finished with it. The cartridge will not be remounted
until it is removed from the drive."
The card could be removed without protest, but its icon remained
greyed-out on the desktop. If the icon was clicked, the system asked
for the disk to be re-inserted. If the icon was left, the system got
into a tangle of removal and insertion demands the next time the card
was inserted.
If the disk is ejected by hand (drag & drop or CMD-E) it behaves
correctly and the icon disappears, is there a way of ensuring that the
icon disappears when the disk is ejected by a script?
--
~ Adrian Tuddenham ~
(Remove the ".invalid"s and add ".co.uk" to reply)
www.poppyrecords.co.uk >> Stay informed about: Scripting Graphic Converter in OS 8.6