Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
name: newTemplate language: AppleScript author: joseluisdgz web: http://www.joseluisdgz.com code (github): http://github.com/joseluisdgz/newTemplate license: http://www.opensource.org/licenses/mit-license.php version: 0.3 # 1. Installation Copy newTemplate_en.app to a folder. It could be Applications folder, or a folder named Scripts that you use to store script files. Just drag it into the Finder Toolbar to have it always handy, and so it will work properly (till future versions). So when the directory you want to copy the new template to is open in Finder, you just have to click newTemplate icon in the toolbar. On launch newTemplate checks if a folder named Templates exists in your Home folder. If it doesn't exist, ask for permission to create it, and also it will add an example template: an empty txt, to create an empty text file quickly without opening a text editor. # 2. Usage Open the folder where you want to create the file in Finder and click newTemplate icon in Finder Toolbar. All templates you copy to Templates folder will appear in the list when you launch newTemplate. A template is just an empty or almost empty file that it's copied to the folder where we launched newTemplate. You can create templates, for example, a html file with your default headers, a markdown file with the structure of your blog articles, a python script with your info and external libraries imported, etc # 3. Credits newTemplate App Icon, thanks to http://jonasraskdesign.com Usage: These icons are free to use in both commercial products as well as personal use. pattern used on Dmg background thanks to Sedma Gallery at DeviantArt http://sedma.deviantart.com/art/152-Seamless-Black-Patterns-199723534 Usage: Only for non-commercial use. Credit me with link to this file or/and my profile page. Send me a link to your art because I would really like to see what have you done. do not alter it and upload it somewhere else claiming it's yours. # 4. Changes since version 0.1 • v0.3: now newTemplate checks if the template to create exists in current folder • v0.3: on create the new template, autoselect created file and activate file name editing # 5. Roadmap I don't have a defined roadmap. This is just a little script. I'll keep adding little improvements and additional checkings. Some ideas I want to implement: • possibility to launch newTemplate as a standalone app, giving choice to select destination folder • select multiples templates to copy • keep looking into the way to let user to config some default vars such as folder name Templates. I still haven't found a solution or a workaround without adding external apps in other languages. • I want to finish developing a templateManager to manage your templates and add new ones. I think I'm asking too much to applescript. # 6. License The MIT License (MIT) Copyright (c) <2012> <joseluisdgz> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.