Re: Set version of Applescript Application
Re: Set version of Applescript Application
- Subject: Re: Set version of Applescript Application
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 1 Feb 2005 20:03:06 -0500
On Tue, 1 Feb 2005 15:26:53 -0500, Christopher MJ Tangora wrote:
I've written a few applescript applications that I have running on
various machines. Aside from looking at the creation date, there is
little way to tell the difference between the two. What I would prefer
is to set the version or product version of the file. I try doing the
simple minded thing, but I think it is read only (but I can't find the
entry in the library to confirm this). Can someone throw me a lifeline
here?
...
tell application "Finder" to set version of file "HD:fold:fold:app" to
"1"
"Finder got an error: Can't set version of file \"HD:fold:fold:app\" to
\"1\"."
Get the same error if I try using product version instead of version.
Is there some way to declare the version number in the Applescript so
when you compile it the version is embedded then?
There's an OS 9 utility program called "VersionEdit" that tackles this
chore. It works with any file that has a resource fork. If a file
doesn't have one the program will create one. I use it when developing
scripts for clients. When I'm writing for my own consumption I just
put the version into the file name.
Marc [2/1/05 7:59:48 PM]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden