Script Tip: Hidden Scripts
John Delacour offers a tip on how to store scripts in the OS X Scripts folder without having them showup in the Script menu. This is handy for storing scripts used by other scripts but never run directly by
a user.
The following line in the Terminal will create an invisible folder named ".hid" within the Scripts folder:
cd ; cd Library/Scripts ; sudo mkdir .hid
To build the path to the new folder in AppleScript:
set the hidFolder to alias ("" & (path to scripts folder) & ".hid")
John then states: Once the folder is created, you can use the Finder to refer to it etc., though of course
it will not show up in file dialogs, so you have to move things into it with a script. If you used it a lot,
you'd want to have a script on the Script Menu to move files into it, eg.
set hid to alias ("" & (path to scripts folder) & ".hid")
tell application "Finder" to move selection to hid
Copyright 2003 Rob Jorgensen | contact: rob at donotsell.net
Theme Design by Bryan Bell