Converting a contextual menu script to a drag and drop script.
Converting a contextual menu script to a drag and drop script.
- Subject: Converting a contextual menu script to a drag and drop script.
- From: Simon Kidd <email@hidden>
- Date: Mon, 6 Oct 2003 12:32:31 -0400
Hi,
I would like to convert the following script for
the Big Cat contextual menu plugin to an
application which I could put in the Finder
toolbar, then I could either drag files onto to
it or highlight them and launch the droplet.
Anyways I would like to know how to convert the
below script into such an application.
Thanks,
Simon
Script follows.
-----------------------------------------------------------------------------------
-- Group in New Folder 1.01
-- (C) 2003 Blue Danube Enterprises. All rights reserved.
on main(theList)
tell application "Finder"
set thename to (text returned of
(display dialog "New folder with name:" default
answer ""))
set theLocation to the target of Finder window 1
repeat
if thename is in (the
name of every item of theLocation) then
set thename to
(text returned of (display dialog ("An item with
the name "" & thename & "" already exists." &
return & "Please enter a new name:") ,
default answer thename))
else
exit repeat
end if
end repeat
set newFolder to (make new folder
with properties {name:thename} at theLocation)
try
move theList to newFolder
end try
end tell
end main
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.