Re: refer to current picture
Re: refer to current picture
- Subject: Re: refer to current picture
- From: "koenig.yvan" <email@hidden>
- Date: Sun, 05 Aug 2012 22:13:30 +0200
Le 05/08/2012 à 20:06, Robert Poland < email@hidden> a écrit : Thanks Yvan,
I butchered your idea, but I must have broken it, gives error Can't get «class FTPc».of window "GraphicConverter"
on run -- set myFolder to choose folder tell application "GraphicConverter" activate -- seems unnecessary set droppedItem to path of window 1 end tell tell me to open (droppedItem's item 1) end run
on open (droppedItem) ...
Hello Robert
I carefully wrote :
Check the syntax giving you the pathname of the file displayed in the window 1.
Clearly you didn't checked the syntax.
As I don't own the app, I just downloaded a trial copy.
The dictionary claims :
elements properties file (file, r/o) : Its location on disk, if it has one. name (text) : name of the image modified (boolean, r/o) : Has it been modified since the last save? valid (boolean, r/o) : true if the file property is valid
With this easy to get info, I edited the script :
(* Entry point for Applet *) on run tell application "GraphicConverter" set droppedItem to file of window 1 end tell my main(droppedItem as alias) end run (* Entry point for Droplet *) on open (droppedItem) (* Here droppedItem is a list of alias *) my main(droppedItem's item 1) end open (* Code used by the two entry points *) on main(anItem) (* do your duty upon anItem *) display dialog "" & class of anItem & return & anItem end main
Please, keep the three handlers. All of them are useful.
Yvan KOENIG (VALLAURIS, France) dimanche 5 août 2012 22:13:10
|
_______________________________________________
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