|
Create New Stack 1.1
An AppleScript solution to create new stacks in the Finder |
|
Contents Software Adminalyser Reference Maker Licenses Stack File Sync License USB2Serial Chat Links Port Chooser DIFfersifier 3.0 Zipfer Salery Web Shop Quibble Archives Browser Bugs in the Quibble Archives Browser Sample Scripts Stack Chat Rev 1.2M CheckPDF 1.0 Create New Stack 1.1 Curvator Bugs Log 1.0 Country Codes 1.1.1 Noughts and Crosses XFCNs and XCMDs More downloads |
Create New Stack 1.1
Often, I have a wish to press the control key, to choose a contextual menu item and create a new stack in a selected folder. I don't know how to create contextual menu items (yet), but I do know how to create AS applets. So, I created an applet that automatically creates a HC stack in a selected folder or next to a selected item in the Finder. If HC is not running, it will start up and present your new stack. The reason why I created this applet is that I create test stacks very often. I don't care about the name, just want them to be called "New Stack" or whatever. If I choose "New Stack..." from the File menu in HC, I have to type a name and choose a folder where to put this stack. Now, I can simply click on the Desktop or in a folder and choose my applet from the Apple menu. No need for typing a silly name, unless a stack "New Stack..." already exists or nothing has been selected in the Finder. This script needs AS 1.5 or later and at least MacOS 8.0 (It has been tested with this version of the MacOS). This release comes in three different versions. The Create New Stack applet creates a new stack in the currently selected folder or next to the currently selected item, if this item is not a folder. The Create New Stack script does the same, but you can put it into your OSA menu or call it from another script using the run() handler. You can also use it from within HyperCard as follows. First, make an AppleScript script, for example in a card script. This should contain: -- language: AppleScript on newStack set theTarget to (path to startup disk as string) & "the called script" set myResult to run script theTarget with parameters {false} end newStack In another script, for example in a button, you can put: on mouseUp newStack end mouseUp Now, if you click the button, a new stack will be created in the currently selected Folder or next to the currently selected item in the Finder. The third version is the Create New Stack CMScript. Use Michael Schürig's CMScript contextual menu plug-in to make the Create New Stack CMScript show up in the contextual menu in the Finder. You may want to change the script's name into Create New Stack (without "CMScript"). You may download the Create New Stack 1.1 package here. If you have any comments on this little piece of software, please send an e-mail to marksch@zonnet.nl. Copyrights and license: In the text below, applet refers to Create New Stack 1.1 and the accompanying components. Author refers to Mark Schonewille, product is defined as any medium that may contain Create New Stack 1.1. Other terms are defined by international agreements, directions of the European Union or Dutch national laws. A number of terms are defined by custom law. Create New Stack 1.1 is a copyright protected applet. The applet and all other components of this software package cannot be sold as a separate software package and cannot be part of any commercial product, such as magazines, shareware collections on cd-rom and the internet, books and promotional artefacts, without a written permit of the author. This restriction also holds if the product is a free gift. Create New Stack 1.1 may be freely distributed in unaltered form, as long as the above restriction is not violated. This means that Create New Stack 1.1 is freeware, but the property rights remain with the author. The author is eligible to request the removal of the applet from hard disks and computers and the destruction of any other product that contains the application. The author and the persons who are mentioned anywhere in the applet or documentation are not responsible for any damage that is possibly, allegedly or actually a consequence of the use of the application. IMPORTANT: even though Create New Stack 1.1 may be distributed freely for non-commercial purposes, the copyrights still apply to the applet. Last update: 02-06-2005 |