Open Bugs
Open Bugs
- Subject: Open Bugs
- From: Luther Fuller <email@hidden>
- Date: Wed, 18 Jan 2012 14:56:40 -0600
In the past week, I have run into this AppleScript bug twice in two different applications. [This thread continues the thread "Getting A Folder On An Image Disk". Image disks aren't really the problem.] The command ...
tell application "Finder" to open fileAlias
has a useful feature: If fileAlias is an alias file whose 'original item' is an item on an unmounted image disk, then the Finder will automatically mount the image disk without error. If this command fails, then the Finder should return an error (number and description) to the script, but it does not report any error. Instead, it displays the Delete Alias / Fix Alias dialog to the manual user.
The command ...
tell application "TextEdit" to open fileAlias
if it cannot open the file, perhaps because of permissions, should return an error (number and description) to the script. It does not report an error to the script, but posts a dialog to the manual user.
Both of these commands suffer from the same problem: An error is reported to the manual user in the form of a dialog instead of being reported to the script. The consequence is that the script loses control because it no longer has the correct information needed to make decisions.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden