Re: Changing script properties
Re: Changing script properties
- Subject: Re: Changing script properties
- From: Larry Nix <email@hidden>
- Date: Mon, 02 Jul 2001 16:56:40 -0400
- Organization: AIS Computers
Kreme,
you do not have to rely on writing to property variables within your scripts:
another option of which many code writers avail themselves is to write in a
handler to check for and create and/or read a prefs file for your
applescript.
the "preferences folder" is a universal reference good on any Mac OS system
and gives you a definitive place to always look for or put any kind of
resource file you need to run your script.
Likewise this way your code can be generic, and run-only - runable on any
machine reguardless of user, setup or software installed, and creates it's
own resources for it's own use. BUT - always use a really unique filename,
and write an error handler to catch when someone has installed an identically
named file.
check out the "preference folder" reference and the "open for access"
commands
YT
LNIX
ps - remember to close that file once you read out what you need - in fact
write an error handler that will default close it whatever happens.
List Kreme wrote:
>
I suspect this is a very stupid question, but I have a script that has two
>
properties that are set on the script's first run. One is an integer, the
>
other is the name of a mailbox (this is a script for Eudora).
>
>
However, I would like the user to be able to change the property. How do
>
you tell an applescript to reset the properties?
>
>
Currently, the script is editable, but I want to release it to my users as
>
a run-only app. It is intended to be run from Eudora's Script menu, if
>
that matters.
>
>
--
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
[demime 0.98b removed an attachment of type text/x-vcard which had a name of l.nix.vcf]