check also the following
tell application "BBEdit"
if (count of text windows) > 0 then
select text window 1
set curr_file to file of text window 1
set curr_path to POSIX path of curr_file
end if
end tell
On Mar 9, 2012, at 9:23 PM, LuKreme wrote:
>
> On 09 Mar 2012, at 09:21 , John Delacour wrote:
>
>> At 06:55 -0700 9/3/12, LuKreme wrote:
>>
>>
>>> On 08 Mar 2012, at 21:57 , Mark Christian wrote:
>>>
>>>> can get the filename of the front-most document in BBEdit, but I'm
>>>> afraid I just don't grok AppleScript.
>>>
>>> set docName to name of text window 1
>>
>> That will get you the name of the window.
>
> When are they different?
>
> --
> "He sees the good in every one. No one would ever take him for a
> clergyman." -- Lucy Honeychurch
>
> --
> 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>
Dmitry Markman
--
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>