On Saturday, 1 February 2003, at 12:20 PM, Scott at HobbyLink Japan
<[EMAIL PROTECTED]> dropped the following bombshell:

>>tell application "PowerMail"
>>      set tm to the current messages
>>      set tm to tm's 1st item
>>      set tName to tm's subject
>>      set newName to text returned of (display dialog "Enter New name" default
>>answer tName with icon note)
>>      set tm's subject to newName
>>end tell
>
>Hey Marcus!  Thanks very much for offering this script.  I've wanted to
>change mail names on several occasions.
>
>Unfortunately I get a compile error at the word default in fifth line. 
>"Expected "," but got modifier" or something like that.  Can you help?
>

I forgot to warn you about the line wrap. The command "set newName to
text returned of (display dialog "Enter New name" default answer tName
with icon note)" is all on one line. Just double click after "default"
and type a space. That should do it.

HTH,

Marcus
-- 
Marcus Jarrett
Adelaide, South Australia
[EMAIL PROTECTED]


Reply via email to