Re: "Save changes to script" when it terminates?
Re: "Save changes to script" when it terminates?
- Subject: Re: "Save changes to script" when it terminates?
- From: Robert Poland <email@hidden>
- Date: Tue, 16 Mar 2004 09:14:54 -0700
Hi,
What other rules apply to this phenomenon?
For example this script seems to update every time it is opened.
local AppName
local msgId
local msgBox
local saveStyles
tell application "Finder" to set AppName to name of application file id "CSOm"
tell application AppName
tell application "Eudora"
-- identify the current message
try
set msgId to id of message 0
set msgBox to mailbox of message 0
on error
display dialog "Open a message first."
buttons {"Cancel"} default button "Cancel"
end try
-- save the styles setting then set it to not
recognize any styles
set saveStyles to setting 161
set setting 161 to -1
-- toggle "show all headers" setting to reopen message
set show all headers of message 0 to true
set show all headers of message 0 to false
-- restore setting
set setting 161 to saveStyles
save window 1 -- to make it permanent
end tell
end tell
Tia,
--
Bob Poland - Englewood, CO
http://www.ibrb.org/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.