I want to make a new disk browser showing the contents of a certain folder. I am having no success. Here's one routine I've tried:

        set _dir to alias "x:y:z"  -- any alias is a file that _exists_!
        tell application "BBEdit"
          set _dbw to make disk browser window
          tell _dbw
            set its selection to {_dir}
          end tell
        end tell

and here's another

        set _f to alias "x:y:z"
        tell application "BBEdit"
          make disk browser window with properties {selection:{_f}}
        end tell
--=> error "BBEdit got an error: An attempt was made to resolve an Apple Event reference to a non-existent object (MacOS Error code: -1728)" number -1728 from disk browser window


The sdef dictionary under 'window' gives 'selection' as a writable property, and the disk browser window has certainly has the property selection:{file "p:q:r"}.

It seems to me BareBones makes no distinction between file "x" and alias "x", so this adds further complications. From the year dot, file "x" need not exist, whereas alias "x" must exist.

Can anyone provide me with a working example?

JD

--
--
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 bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
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 "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>



Reply via email to