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: 2 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: 9 hours 8 min 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: 2 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.

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
http://keasigmadelta.co.nz/ - more of my software.

Log in or register to post comments