I'm working on a plugin for PeepOpen to work with BBEdit. PeepOpen
provides a fuzzy finder for files based on a path. I've got it working
using the path for the current document. However, I would like to use
the current path of the project if it is part of a project. I'm having
trouble finding the working directory for the active project:
tell application "BBEdit"
set proj to project document 1
set docProject to file of proj
display dialog "ProjectPath = " & (docProject as string)
open location ("peepopen:" & POSIX path of docProject as string) & "?
editor=BBEdit"
end tell
Additionally, this assumes that the project if stored on disk is at
the right path. Does anyone know a way to get the path used to
populate the active project document? That would probably solve it for
me.
--
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>