Applescript bugs in Panther
Applescript bugs in Panther
- Subject: Applescript bugs in Panther
- From: Dave MacLachlan <email@hidden>
- Date: Wed, 22 Oct 2003 08:18:34 -0700
Has anybody else noticed that Panther doesn't seem to support "with
timeout" statements the way that previous versions of Applescript have?
If I try the following:
Try
With timeout of 2 seconds
Tell application "Terminal"
Display dialog "What is your name?"
End
End
On error
Beep
End
On Jaguar, it will show the dialog, wait two seconds, and then beep On
Panther, it will show the dialog, wait two seconds, and then continue
without hitting the error block. There doesn't appear to be a way of
getting it to report an error.
Also, there's an issue with putting styled text into records and reading
and writing them out of files.
Set theFile to open for access with write permissions
Set a to choose file as string
Set b to {myFile:A}
Write b to theFile as record
Close access to theFile
Set theFile to open for access
Set d to read theFile as record
Close access to theFile
Will not read the record correctly. This also used to function under
Jaguar. The only workaround I've found for this one is to replace line 2
with
Set a to choose file as string
Set a to {text:a}
I've reported both of these, but I was wondering if anyone else had
found AppleScript anomalies in Panther, as these two have caused us a
lot of grief.
Cheers,
Dave
______________________________________________
Dave MacLachlan Illustrator Eng
Binary Composer Adobe Systems Inc.
_______________________________________________
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.