Re: Handler to set Script Properties?
Re: Handler to set Script Properties?
- Subject: Re: Handler to set Script Properties?
- From: kai <email@hidden>
- Date: Sat, 5 Mar 2005 04:01:32 +0000
On Fri, 4 Mar 2005 13:21:43 -0800, Pat Stanford wrote:
I am working on a script that will be run from the script menu. It
really doesn't need to have any user interface, but it would be nice
to be able to include a handler to set one of the script properties
occasionally. The property is the email account in Mail.app to use, so
it would be much better to call up a Select from List dialog rather
than make the user go in and edit the script
Is there an "easy" way to get a handler to run to handle a situation
like this?
(Lines abutting the left-hand side of the page may need rejoining with
the previous line.)
-------------------
property dfltAccName : "kai.kai" (* modify to suit *)
to changeEmailAccount()
tell application "Mail" to set accList to name of accounts
tell (choose from list accList with prompt "Please choose the email
account you wish to use:" default items {dfltAccName})
if it is false then error number -128
if it is not {dfltAccName} then set dfltAccName to item 1
end tell
end changeEmailAccount
changeEmailAccount()
-------------------
---
kai
_______________________________________________
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