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


Click here to return to the '10.4: Make any folder a burn folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Make any folder a burn folder
Authored by: Mitchell on Sep 24, '05 06:46:51PM
I was unable to make this work using neither OnMyCommand, nor Automator, nor AppleScript. The command line, of course, worked perfectly. Doing a little digging, it appears that if you make your main drive invisible, using this hint, then you'll have a problem with the user interface, which manifests in AppleScript as a "Could Not Get Class of Folder..." error. Switching the state of the root volume back to visible seems to fix the problem. If anyone has a suggestion for how to do it while maintaining the invisibility of the root volume, I'd be very interested.

[ Reply to This | # ]
10.4: Make any folder a burn folder
Authored by: rjbailey on Sep 25, '05 05:46:37PM

Here's the code that works in OMC:
<dict>
<key>ACTIVATION_MODE</key>
<string>act_folder</string>
<key>CATEGORIES</key>
<array>
<string>File</string>
</array>
<key>COMMAND</key>
<array>
<string>mv </string>
<string>__OBJ_PATH__</string>
<string> </string>
<string>__OBJ_PATH__</string>
<string>.fpbf</string>
</array>
<key>EXECUTION_MODE</key>
<string>exe_silent</string>
<key>NAME</key>
<string>Change folder to Burn Folder</string>
<key>NOTES</key>
<string>Simply appends .fpbf to folder name</string>
<key>SUBMENU_NAME</key>
<string>On My Command</string>
<key>VERSION</key>
<integer>1</integer>
</dict>

And the reverse that removes the extension:

<dict>
<key>ACTIVATION_MODE</key>
<string>act_folder</string>
<key>CATEGORIES</key>
<array>
<string>File</string>
</array>
<key>COMMAND</key>
<array>
<string>mv </string>
<string>__OBJ_PATH__</string>
<string> </string>
<string>__OBJ_PATH_NO_EXTENSION__</string>
</array>
<key>EXECUTION_MODE</key>
<string>exe_silent</string>
<key>NAME</key>
<string>Delete folder extension</string>
<key>NOTES</key>
<string>Removes folder extension</string>
<key>SUBMENU_NAME</key>
<string>On My Command</string>
<key>VERSION</key>
<integer>1</integer>
</dict>



[ Reply to This | # ]