I don’t seem to be able to create a new folder on the Desktop with an assigned name. There must be a simple make instruction to do it, surely.
This snippet will test for a folder on your desktop with your desired name and, if it doesn’t exist, it will create it. The end result is an alias reference to the folder.
Jon
[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]
Seen done, these always seem so simple and obvious. Thanks.
Just a related note…If you’re working with the desktop, you don’t need to say “desktop”, because if there is no location specified, the desktop in implied.
tell application "Finder" to (make new folder with properties {name:"My great name!"}) as alias
Just a related note…If you’re working with the desktop, you don’t need to say “desktop”, because if there is no location specified, the desktop in implied.
tell application "Finder" to (make new folder with properties {name:"My great name!"}) as alias
Are things like this simply “discovered” or is there a reference I’m missing?
I honestly can’t remember how I learned that about the desktop initially. I personally come across a lot by accident, but there’s a lot of tidbits I pick up here and there on boards like this. Sometimes I read other people’s questions, and gather something new that I wasn’t even looking for.
Sometimes I read other people’s questions, and gather something new that I wasn’t even looking for.
I’ve got so many of those snippets stored now that I’m having a hard time remembering what I called them. More than half of what little I know was learned that way.