• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Converting a contextual menu script to a drag and drop script.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: applescript-users digest, Vol 3 #2054 - 14 msgs (From: email@hidden)

  • Prev by Date: And another question... (cron and osascript)
  • Next by Date: CD virus scan
  • Previous by thread: Re: applescript-users digest, Vol 3 #2054 - 14 msgs
  • Next by thread: get "Customer serial number"
  • Index(es):
    • Date
    • Thread