Re: Creating preferences for an applescript application
Re: Creating preferences for an applescript application
- Subject: Re: Creating preferences for an applescript application
- From: Bjorn Sodergren <email@hidden>
- Date: Mon, 22 Nov 2004 12:56:55 -0600
I know how property works, but why i am askin this is because the
script prints files to a server share. the other day the share
disappeared and we had to recreate it but was named differently than
my script had. I am the only one who knows how to fix it so until i
came in, they couldnt use it.
If i had it where they could start the app and go to
file->preferences and set what is now a property, it would make things
a lot better for them.
I would also like to be able to set the application we use to print
from (Preps), which is currently hard coded into the application.
On Mon, 22 Nov 2004 13:46:06 -0500, Graff <email@hidden> wrote:
> Any properties you set in an Applescript applet are saved between runs
> of the applet, in a manner which duplicates preferences.
>
> Just do something like the following:
> ----
> property userName: "Mike"
>
> display dialog userName
> set userName to "Bob"
> display dialog userName
> ----
>
> Save that as an Applescript applet and then run it twice. The first
> time you will get a dialog that says "Mike" and then one that says
> "Bob". The second time they will both say "Bob". That is because the
> property was saved between runs.
>
> Note that if you edit and re-save the applet the properties will get
> re-set to their original settings, the preferences will be lost.
>
> - Ken
>
>
>
> On Nov 22, 2004, at 11:42 AM, Bjorn Sodergren wrote:
>
> > I wrote a couple of small applescript applications to assist us in the
> > prepress area. However, i would like to make it easy for others to
> > change some of the properties i use in the script (server, user/pass,
> > directories)
> >
> > Does anyone know of some good docs or examples that will help me
> > support this feature?
>
> _______________________________________________
> 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
>
_______________________________________________
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