On 08 Mar 2012, at 21:57 , Mark Christian wrote:
> Heya, gang;
> I'm a complete AppleScript moron. I've been trying to figure out how I
> can get the filename of the front-most document in BBEdit, but I'm
> afraid I just don't grok AppleScript.
It's been a long time since I actually used AppleScript in BBEdit but this used
to work:
tell application "BBEdit"
set docName to name of text window 1
display dialog "Document is named" default answer docName
end tell
Yep, still works, at least in the simplest case I tested.
(I put default answer just so that the filename was selectable in the dialog,
you wouldn't normally do this, just "display dialog docName" would do.)
--
'Why is it all Mr Dibbler's films are set against the background of a
world gone mad?' said the dwarf. Soll's eyes narrowed. 'Because Mr
Dibbler,' he growled, 'is a very observant man.' --Moving Pictures
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>