emailboy AppleScript telling Finder instead of BBEdit?
Nov 07, 2008; 15:52
emailboy
AppleScript telling Finder instead of BBEdit?
I have a very simple script that is trying to open a file in BBEdit read only, but when run, it tells "Finder" instead of "BBEdit" to open the file:
tell application "Finder" set alias2 to file "blah-blah-blah" end tell
tell application "BBEdit" activate open alias2 opening in front_window with read only end tell
The Event Log shows that it actually splits the 'tell application "BBEdit"' into two 'tell' blocks, one telling "BBedit" and then "Finder":
tell application "Finder" get file "draft-ietf-lemonade-notifications-07.txt" of folder "draft- gellens" of folder "IETF" of folder "randy" of folder "Users" of disk "TiLand" document file "draft-ietf-lemonade-notifications-07.txt" of folder "draft-gellens" of folder "IETF" of folder "randy" of folder "Users" of disk "TiLand" end tell tell application "BBEdit" activate end tell tell application "Finder" open document file "blah" of folder "blah" of disk "blah" with «class RdOn» given «class OpnI»:«constant ****FrtW» end tell
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "support@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~-
Nov 07
Jim Correia Re: AppleScript telling Finder instead of BBEdit?
Nov 07, 2008; 15:58
Jim Correia
Re: AppleScript telling Finder instead of BBEdit?
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!