On Jun 22, 2011, at 14:04 , Rich F wrote:
> Hi folks.
>
> For the life of me I can't find a way of opening a file in a
> subdirectory in my webserver directory.
>
>
> set myF to file "/Library/WebServer/Documents/alpha/bravo/items.lasso"
>
> tell application "BBEdit 9.6"
> open myF as alias
> end tell
>
> It says can't get the file. I know it's there. I've tried how to
> change the syntax on the open and I just can't get it. Any ideas?
>
> Cheers
Glen,
In all my scripts that open files, I use this structure instead:
open {file "infernal:private:etc:apache2:httpd.conf"}
Which is what AppleScript emits if you record BBEdit opening a file.
HTH!
--
Lorin Rivers
Mosasaur: Killer Technical Marketing <http://www.mosasaur.com>
<mailto:[email protected]>
512/203.3198 (m)
--
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>