• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Save changes to script" when it terminates?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: "Save changes to script" when it terminates?
      • From: Michael Terry <email@hidden>
References: 
 >Re: "Save changes to script" when it terminates? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: floating point idle delays, 'with timeout' and the date class
  • Next by Date: Drive mapping question
  • Previous by thread: Re: "Save changes to script" when it terminates?
  • Next by thread: Re: "Save changes to script" when it terminates?
  • Index(es):
    • Date
    • Thread