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

Click here to return to the 'Create special single-click-to-launch Dock folders' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create special single-click-to-launch Dock folders
Authored by: robleach on Mar 08, '06 05:01:40PM
There's one other drawback to this scheme which I forgot to mention. Drag and drop doesn't open the default application with the dragged files. I've been trying to work on this and haven't come up with a solution I'm satisfied with yet. I got a step closer. This applescript addition to the "open safari" script above will open the dragged files in the default app (in this case: graphicconverter), but it also transfers the files into the special folder unfortunately.

(* Make a string of the items' paths *)<BR>
on adding folder items to this_folder after receiving these_items<BR>
	set item_string to ""<BR>
	repeat with i from 1 to number of items in these_items<BR>
		set this_item to item i of these_items<BR>
		set the item_info to info for this_item<BR>
		set the item_string to item_string & the quoted form of the POSIX path of this_item & " "<BR>
	end repeat<BR>
	do shell script ("open -a GraphicConverter " & item_string)<BR>
end adding folder items to<BR>

I tried to write this code more efficiently, but I'm not an applescripter and couldn't figure out how to get the cleaner looking code to work.

[ Reply to This | # ]
Create special single-click-to-launch Dock folders
Authored by: Masha88 on May 02, '09 03:39:32AM
Thank you! Just think how this can be realized. :-)
Download Full Releases

[ Reply to This | # ]