Add/remove a shortcut to Ambients desktop.
If OWB or URL is specified, PATH contains a URL, which will be saved
to a file (default path: SYS:URLS/) first.
The icon of the newly created shortcut, will be the favIcon of the website!
Usage: Ambient_AddShortcut PATH/A,REM=REMOVE/S,URL=OWB/S
You can use it from a shell:
s:Ambient_AddShortcut sys:Applications
If you want to remove it, select "Put away" from contextmenu of the icon or type in a shell:
s:Ambient_AddShortcut REMOVE sys:Applications
To add shortcuts from OWB, you have to add a command to OWBs contextmenus:
Type: Link
Label: Add as shortcut to Ambient
Action: s:Ambient_AddShortcut OWB "%l"
Type: Page
Label: Add as shortcut to Ambient
Action: s:Ambient_AddShortcut OWB "%u"
Installation:
=============
Copy the contents of the directory "s" to S:
History:
========
v1.2 07-Jan-15
new: s:FetchFavIcon will be used to retrieve the favIcon of the website
to be used as the icon for the shortcut
fix: "https" urls are now recognized
chg: the stacksize is set to 16KB
v1.1 29-Dec-14
new: you can now also specify URL instead of OWB to create a shortcut to an url
new: added a version string to this script
chg: don't add ".url" suffix to the URL files
new: use "s:Ambient_AddShortcut.info" as the icon if you create a shortcut to a url
fix: the temporary file env:AASCfile will be deleted
v1.0 26-Dec-14
first release
|