Paladin of the Pegasos
Posts: 1280 from 2010/1/6
From: EU-Austria (Wien)
There are arexx-commands for snapshot und unsnapshot in Ambient. You can write scripts and call them with shortcuts, defined by mmkeyboard (https://www.geit.de/eng_mmkeyboard.html) or with CRABUM (https://igracki.lima-city.de/frames/progs/CRABUM.html).
Example unsnapshot Ambient:
/*
* $VER: unsnapshot.rexx 1.0 (08.08.2006)
*
* synopsis: unsnapshots icon and window positions from all
* icon files in a given path
*
* $Id: unsnapshot.rexx,v 1.2 2013/05/19 21:29:28 tokai Exp $
*/
parse arg path
tmpfile = 't:tmp'
address command 'list >t:tmp quick nohead '||path||#?.info
if(open(f, tmpfile, 'r')) then
do
do while(~eof(f))
line=readln(f)
if line~='' then do
address AMBIENT
'unsnapshot path="'||line||'" icons window'
end
end
close(f)
address command 'delete >nil: '||tmpfile
end
----------------
Ambient documentation:
eg: Snapshot
Command:
- Snapshot
Synopsis:
- Snapshots the icon
Parameters:
- PATH: path of the icon to snapshot, if not supplied, path is taken from
the selected entries in the SRC lister or the selected object
- ICONS/S: snapshot the icon placement
- WINDOW/S: snapshot the window placement and size
- SELECTION/S: if ICON is set, when called from view, only selected icons are snapshot.
RC:
- 0: Ok
Docu can be found in Mossys:Ambient/Docs.
Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....