Welcome, Guest. Please login or register.

Author Topic: How To Open Shell At Currently Active Window Path With OS3.x?  (Read 1520 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline fishy_fizTopic starter

  • Hero Member
  • *****
  • Join Date: Jan 2005
  • Posts: 1813
    • Show only replies by fishy_fiz
How To Open Shell At Currently Active Window Path With OS3.x?
« on: October 30, 2011, 03:09:01 PM »
The topic pretty much says it.
It's a feature I got used to pretty quickly using AROS and I really miss it while using os3.x. Can anyone tell me if its possible please?  
So far Ive considered writing a small program that's launched with shell-startup, that finds which window is active using window flags or similar, but can a full path be read that way?

Ideally Id prefer to keep it "cleaner" and not require an external program (or use something pre-existing), but if need be I dont mind doing it this way.

Can anybody offer any input here please?

Thanks in advance.
Near as I can tell this is where I write something under the guise of being innocuous, but really its a pot shot at another persons/peoples choice of Amiga based systems. Unfortunately only I cant see how transparent and petty it makes me look.
 

Offline Lizard

  • Full Member
  • ***
  • Join Date: May 2007
  • Posts: 195
    • Show only replies by Lizard
Re: How To Open Shell At Currently Active Window Path With OS3.x?
« Reply #1 on: October 30, 2011, 03:21:17 PM »
a sort of workaround could be this tool from aminet: http://aminet.net/package/util/shell/AppCon

Scalos has an option where you can define context menus, but this doesn't exist for OS3.x iirc.
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: How To Open Shell At Currently Active Window Path With OS3.x?
« Reply #2 on: October 30, 2011, 03:56:43 PM »
With AmigaOS 3.5+, it's possible to use the Workbench.library ARexx interface to get the currently active window name using "GETATTR WINDOWS.ACTIVE". NEWSHELL does not support a path option so the FROM option with a temp script that is built on the fly containing a NEWSHELL and CD command would be necessary. ToolsDaemon or similar could launch it all with your favorite hot key.
 

Offline Lizard

  • Full Member
  • ***
  • Join Date: May 2007
  • Posts: 195
    • Show only replies by Lizard
Re: How To Open Shell At Currently Active Window Path With OS3.x?
« Reply #3 on: October 30, 2011, 04:02:30 PM »
such a script could be very small like this:

.key DIR

cd
newshell