[Thread Prev][Thread Next][Thread Index]
Another CDE action worthy of a mention?
- To: pilotmgr@xxxxxxxxxxxxxxxxxxxx
- Subject: Another CDE action worthy of a mention?
- From: Stacey Marshall - Sun ETZN Networking Product Support <stacey.marshall@UK>
- Date: Thu, 15 Oct 1998 18:09:03 +0100 (BST)
- Reply-to: Stacey Marshall - Sun ETZN Networking Product Support <stacey.marshall@UK>
- Sender: owner-pilotmgr@moshpit
After looking on pilotGear and finding several hints for short cuts for loading
PRC files on another OS, I thought I'd share with you this shortcut for CDE.
Simply save data below into a current or new .dt file in ~/.dt/types and
reload actions / restart CDE.
It assumes pilot-xfer is in your path.
Enables you to double click on a .prc file to have it loaded onto your pilot.
Stacey.
DATA_ATTRIBUTES PRC
{
ACTIONS Open
ICON Dtbin
NAME_TEMPLATE %s.prc
MIME_TYPE application/octet-stream
DESCRIPTION Pilot
TYPE_LABEL COMPRESSED
}
DATA_CRITERIA PRC1
{
DATA_ATTRIBUTES_NAME PRC
MODE f
NAME_PATTERN *.prc
}
DATA_CRITERIA PRC2
{
DATA_ATTRIBUTES_NAME PRC
MODE f
NAME_PATTERN *.PRC
}
ACTION Open
{
LABEL Install pilot PRC file on pilot
ARG_TYPE PRC
TYPE COMMAND
WINDOW_TYPE TERMINAL
EXEC_STRING sh -c ' \
pilot-xfer $PILOT_TTY -i "%(File)Arg_1%" 2>&1; \
echo " <Press ENTER to exit window>"; \
read WAIT \
'
DESCRIPTION Install PRC to pilot.
}