Re: Why is this script 'openin' stationery files.
Re: Why is this script 'openin' stationery files.
- Subject: Re: Why is this script 'openin' stationery files.
- From: KOENIG Yvan <email@hidden>
- Date: Sat, 10 Sep 2011 16:04:32 +0200
Le 10 sept. 2011 à 15:55, Axel Luttgens a écrit : Le 10 sept. 2011 à 15:20, KOENIG Yvan a écrit : [...]
It's just annoying to have it creating a replicate when the script is just supposed to set the property when it's not already set.
When the dragged file has its stationery property set, if we drag & drop it to the script, this one receive inn fact a reference to the replicate created by the Finder.
But I repeat that this script isn't dedicated to open a file.
The goal is just to change the status of the original file.
[...]
Hello Yvan, I fear you would have to resort to something else than a droplet, for example an applet opening with a selection dialog ("Please select a file to turn into a stationary pad") if you want to avoid the duplication in case the file is already a stationary. This is the logical conclusion of what I wrote in my previous message; provided my prose may legitimately be used for logical inferences, of course. ;-) Axel
The script already has the "on run" entry point but the "on open" one is easier to use.
PS: I deliberately write "stationery" because it's the spelling used by AppleScript.
file n [inh. item] : A file properties file type (type) : the OSType identifying the type of data contained in the item creator type (type) : the OSType identifying the application that created the item stationery (boolean) : Is the file a stationery pad? product version (text, r/o) : the version of the product (visible at the top of the “Get Info” window) version (text, r/o) : the version of the file (visible at the bottom of the “Get Info” window)
I'm filing a bug report because from my point of view the behavior isn't the logical one.
Yvan KOENIG (VALLAURIS, France) samedi 10 septembre 2011 16:04:26
|
_______________________________________________
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