QuickGoto
Posted: 24 Oct 2008 11:52
Hi,
Download QuickGoto.xys Needs at least XY v7.90.0030
i finally wrote a little script that allows me to give files, folders or scripts a nickname to quickly access them via a "QuickGoTo" input box. The script (i named it "QuickGoTo.xys") has the following features:
There are different type of "targets":
)
All nicknames and temporary settings will be saved into the "QuickGoTo.ini".
I have defined this script as a "Load Script File"-UDC with the label "QuickGoTo" so that i can get the QuickGoTo input with just one shortcut. Here are a few examples of what can be defined:
[GoTo]By typing in "dl" into the input box, the script will take me to my downloads folder
-> will browse to xy's folder
will apply a visual filter that only shows exe files
will search for all text files in the current directory including subdirectories
will delete all temp files in the current directory. Be careful if you enter script commands like that: You have to double all quotes!
[Open]will open jkl.JPG with the associated application
[Load]will load the script "INI Tweaks.xys" from XYs script directory.
will load the script "INI Tweaks.xys" with the label "sec6".
Update
Since Don added the command "readfile" today, i updated the script. It's now possible to edit the ini sections for "GoTo", "Open" and "Load" directly in the script. I also began to add a functionality to use the "standard goto" as a fallback when no defined nickname was found. I'm not satisfied yet with the result. Will keep you updated.
Update 26.10.2008
One more update: A few changes in the general structure of the script. And there is now a setting to define what to do in case a nickname does not exist yet: Add it, use input as "goto" parameter or do nothing.
Inspired by serendipity i also added the capability to define a label if a script is defined as "load" target. E.g.:will load the script "INI Tweaks.xys" with the label "sec6".
You need at least XY v7.70.0007 to run this script.
Update 03.11.2008
Added support for custom "variables" to the targets:
Update 08.01.2009
Latest changes:
You need at least XY v7.80.0032 to run this script.
Update 09.01.2009
Latest changes:
You need at least XY v7.90.0030 to run this script.
Download QuickGoto.xys Needs at least XY v7.90.0030
i finally wrote a little script that allows me to give files, folders or scripts a nickname to quickly access them via a "QuickGoTo" input box. The script (i named it "QuickGoTo.xys") has the following features:
There are different type of "targets":
- GoTo
Everyting that can be put in XYs address bar can be defined as "goto" target. Most of the time it will be a folder, but Visual filters, Name Searches, script commands, ... are also possible. - Open
Here you can define a file that will be opened with the associated application - Load
In this section you can define a XY-script which will be loaded directly.
All nicknames and temporary settings will be saved into the "QuickGoTo.ini".
I have defined this script as a "Load Script File"-UDC with the label "QuickGoTo" so that i can get the QuickGoTo input with just one shortcut. Here are a few examples of what can be defined:
[GoTo]
Code: Select all
dl=D:\DownloadsCode: Select all
xy=<xypath>Code: Select all
exe=|*.exeCode: Select all
txt=?*.txt /rCode: Select all
deltemp=::selfilter ""*.temp"", f; delete 1, 0, "":list"";[Open]
Code: Select all
pic=D:\asdf\jkl.jpg[Load]
Code: Select all
ini=INI TweaksCode: Select all
ini=INI Tweaks, sec6Since Don added the command "readfile" today, i updated the script. It's now possible to edit the ini sections for "GoTo", "Open" and "Load" directly in the script. I also began to add a functionality to use the "standard goto" as a fallback when no defined nickname was found. I'm not satisfied yet with the result. Will keep you updated.
One more update: A few changes in the general structure of the script. And there is now a setting to define what to do in case a nickname does not exist yet: Add it, use input as "goto" parameter or do nothing.
Inspired by serendipity i also added the capability to define a label if a script is defined as "load" target. E.g.:
Code: Select all
ini=INI Tweaks, sec6You need at least XY v7.70.0007 to run this script.
Added support for custom "variables" to the targets:
You need at least XY v7.70.0010 to run this script.You can also use variables inside a target. A variable has to be surrounded by a forward slash (/) to be recognized. E.g. you can define the following 'open' nickname:
report=C:\Reports\Report 2008-/Month/.xls
If you now use the nickname 'report' you will be prompted to input a value for 'Month'. This value will replace '/Month/' in the target, resulting in 'C:\Reports\Report 2008-10.xls' for example. Therefore you can define one nickname for similiar targets.
Latest changes:
Code: Select all
v0.01.0005 2009.01.08 XY v7.80.0032
+ If a comma (',') is found in an 'open' target, it is handled through the
command 'openwith'. The part before ',' is the executable, the part after
',' the parameter
+ Added automatic update support for the script through jacky's XYAULatest changes:
Code: Select all
v0.01.0006 2009.01.09 XY v7.90.0030 CJ v0.01.0002
! Renamed INI section 'Setup' to 'Settings' and key 'NicknameExists' to
'OnNewNickname'
+ The character for separating executable from parameter ('open' target) and
script file from label ('load' target) respectively can be changed to any
character in the settings (defaults to comma (',')
+ The character used to recognize inline variables (default is a slash ('/')
can be changed to any character in the settings
+ New settings dialog using XYs new 'html' function
+ New Help page using XYs new 'html' function