On Thursday, August 18, 2011, Watts Martin <[email protected]> wrote:
Short of creating two releases, one for Dropbox and one for Library,
is there a way to do this? I don't think BBEdit sets such variables,
so it probably has to be something the script figures out on its own.
In any running AppleScript, "path to me" returns (what looks
like) an alias to the script. To find the directory that you're
running out of, something like this will work:
tell application "Finder"
set my_folder_path to (container of (path to me) as string)
end tell
There's probably some way to turn that into a POSIX path.
R.
--
Rich Siegel Bare Bones Software, Inc.
<[email protected]> <http://www.barebones.com/>
Someday I'll look back on all this and laugh... until they
sedate 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>