Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Scripting Graphic Converter in OS 8.6

 
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  Question about Hotmail and Mail Stationery  
Author Message
Adrian Tuddenham

External


Since: Feb 07, 2012
Posts: 4



(Msg. 1) Posted: Tue Feb 07, 2012 2:27 pm
Post subject: Scripting Graphic Converter in OS 8.6
Archived from groups: alt>comp>lang>applescript (more info?)

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.

~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
tell application "GraphicConverter PPC"
activate
open XXX as alias
create icon of XXX
end tell
end tell

~~~~~~~~~~~~~~~~~~~~~~~~~~~

The error message is:

Can't make file "IMG_0378.JPG of <<class cfol>> "Picture hold" of
<<class cfol>> "GraphicConverter 4 US PPC" of <<class cfol>>
"Applications" of <<class sdsk>> of application "Finder" into the
expected type.


Can anyone suggest what I am doing wrong?


--
~ 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 
Back to top
Login to vote
Patrick Stadelmann

External


Since: Nov 12, 2003
Posts: 382



(Msg. 2) Posted: Tue Feb 07, 2012 2:27 pm
Post subject: Re: Scripting Graphic Converter in OS 8.6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
adrian DeleteThis @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

Patrick
--
Patrick Stadelmann

 >> Stay informed about: Scripting Graphic Converter in OS 8.6 
Back to top
Login to vote
Adrian Tuddenham

External


Since: Feb 07, 2012
Posts: 4



(Msg. 3) Posted: Tue Feb 07, 2012 3:35 pm
Post subject: Re: Scripting Graphic Converter in OS 8.6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Patrick Stadelmann wrote:

> In article
> ,
> adrian.RemoveThis@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.


--
~ 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 
Back to top
Login to vote
Adrian Tuddenham

External


Since: Feb 07, 2012
Posts: 4



(Msg. 4) Posted: Wed Feb 08, 2012 8:35 am
Post subject: Re: Scripting Graphic Converter in OS 8.6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Patrick Stadelmann

External


Since: Nov 12, 2003
Posts: 382



(Msg. 5) Posted: Wed Feb 08, 2012 1:30 pm
Post subject: Re: Scripting Graphic Converter in OS 8.6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
adrian RemoveThis @poppyrecords.invalid.invalid (Adrian Tuddenham) wrote:

> 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?

I think the corresponding AppleScript code is :

tell application "Finder" to put away disk <diskname>

Patrick
--
Patrick Stadelmann
 >> Stay informed about: Scripting Graphic Converter in OS 8.6 
Back to top
Login to vote
Adrian Tuddenham

External


Since: Feb 07, 2012
Posts: 4



(Msg. 6) Posted: Wed Feb 08, 2012 2:33 pm
Post subject: Re: Scripting Graphic Converter in OS 8.6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Patrick Stadelmann wrote:

> In article
> ,
> adrian.DeleteThis@poppyrecords.invalid.invalid (Adrian Tuddenham) wrote:
>
> > 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?
>
> I think the corresponding AppleScript code is :
>
> tell application "Finder" to put away disk <diskname>

That worked perfectly - Many Thanks


--
~ 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 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
need script that reveres graphic converter=?ISO-8859-1?B?u.. - Hi, Is there a way to write a script that reverses tha last file move action? I am using GraphicConverter and it allows me to move files files to preset folders as I am watching the slideshow. Sometimes I make a mistake and file a photo into a rejects..

Scripting RealPlayer 10 - Is it possible to instruct Real Player to open a specific URL? I've tried a few different things, and the best I can do is to get RealPlayer to start up. Can't get it to recognize the URL... tell application "RealPlayer" open..

Getting info from UI Scripting - How can I get information using UI scripting? For example, let's say I want to do one thing if speakers are plugged, another if they're not. This info is apparently available to the UI Scripting inspector, because I can get a panel that shows: ...

UI Scripting Beta -

UI Scripting: why this won't work - I found this script on Apple 's site using UI scripting to import pictures of a folder into iPhoto: this_item is the choosen folder. // -- convert the file reference to UNIX style set this_path to the POSIX path of this_item -- bring the target..
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]