Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Create a new folder in the current list-view directory' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a new folder in the current list-view directory
Authored by: dhjdhj on Jun 12, '10 04:18:09PM

I'm no expert on applescript (indeed trying to learn it right now) but that "as alias" does not seem to work correctly. In particular, I selected a folder and this script always seemed to create new folder at the same level as selected folder, not inside it.

I inserted the line
set foo to class of currentPath
and took a look at the value of foo. Its value is "alias" and so the test to see if "class of currentPath is folder" can never succeed as far as I can tell.

I'm sure I'll figure it out after reading a bit more about applescript but unless I'm missing something, I can't see how this script could ever have worked when a folder is selected.


[ Reply to This | # ]