How to tell Workbench to show a drawer and select a file (or files)?

3 posts / 0 new
Last post
Hans
Hans's picture
Offline
Last seen: 3 months 3 weeks ago
Joined: 2010-12-09 22:04
How to tell Workbench to show a drawer and select a file (or files)?

Is it possible for a program or AREXX script to ask Workbench to display a drawer and select a file (or files) in it? It would be important that Workbench would scroll the drawer so that the selected file is in fact visible.

Hans

jabirulo
jabirulo's picture
Offline
Last seen: 2 weeks 4 days ago
Joined: 2013-05-30 00:53
Re: How to tell Workbench to show a drawer and select a file ...

Lookin inot WB-ARexx.guide

Example:

/* Select the icons of the "Workbench" and "Work" volumes
* displayed in the root window.
*/
ADDRESS workbench

ICON WINDOW root NAMES Workbench Work SELECT

/* Open the "Workbench" volume icon displayed in the root
* window.
*/
ICON WINDOW root NAMES Workbench OPEN

tested under Shell/CLI:
#rx "address workbench; window windows 'RAM:T' open; icon window 'RAM:T' 'usb.log' select makevisible;"

it opens RAM:T drawer and shows/selects usb.log.

AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P

Hans
Hans's picture
Offline
Last seen: 3 months 3 weeks ago
Joined: 2010-12-09 22:04
Re: How to tell Workbench to show a drawer and select a file ...

Thanks. That's exactly what I was looking for.

Join the Kea Campus - upgrade your skills; support my work; enjoy the Amiga corner.
https://keasigmadelta.com/ - see more of my work

Log in or register to post comments