Re: What conversion am I missing?
Re: What conversion am I missing?
- Subject: Re: What conversion am I missing?
- From: "koenig.yvan" <email@hidden>
- Date: Sat, 08 Sep 2012 23:12:02 +0200
Le 08/09/2012 à 23:02, Robert Poland < email@hidden> a écrit : On Sep 8, 2012, at 2:47 PM, "koenig.yvan" < email@hidden> wrote: Le 08/09/2012 à 18:45, Robert Poland < email@hidden> a écrit : Hi,
I have this script that if I drop an image on it all is well. But if I try to "run" it (from an open GraphicConverter window" I get errors. I'm sure that i'm not making the "droppedItem" into the right class or whatever.
What conversion am I missing?
on run tell application "GraphicConverter" delay 2 set droppedItem to window name of window 1 end tell open {droppedItem} end run
on open (droppedItem) …
Hello
droppeditem is a name.
You can't open a file with its name, you need its full pathname.
Yvan KOENIG (VALLAURIS, France) samedi 8 septembre 2012 22:46:56
Obviously I'm for getting another of my many lessons…
this isn't the answer;
tell application "GraphicConverter" activate delay 2 set droppedItem to get path of window 1 end tell
As far as I know, there is no path property attached to a window.To get this info you must ask for the file of this window.
tell application "GraphicConverter" activate delay 2 set droppedItem to get file of window 1 end tell
CAUTION, I have its dictionary but don't have the application GraphicConverter so I don't know if it returns the path as a string or as an alias. Maybe it's an Unix path (slash delimiters).
Yvan KOENIG (VALLAURIS, France) samedi 8 septembre 2012 23:11:43
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden