• 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
Re: Contextual menus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Contextual menus


  • Subject: Re: Contextual menus
  • From: Jeremy Sellors <email@hidden>
  • Date: Tue, 7 Apr 2009 00:54:21 -0700

I use OnMyCommand.
http://www.abracode.com/free/cmworkshop/
in the OMCEdit program I just refer to the script in the command
run script POSIX file "/Users/jem/Library/Scripts/Safari>Pages.scpt"
but you can include the hybrid script in the command
like "Send file via E-Mail". Just select a bunch of files in the Finder and use the contextual menu to attach them to a new Mail message.
<Start command>
tell application "Mail"
activate
set msg to make outgoing message
set filelist to {__OBJ_PATH__}
set namelist to {__OBJ_NAME__}
set filecount to count of filelist
tell msg
set visible to true
if filecount is greater than 3 then
set subject to filecount as string & " Files Attached"
else if filecount is greater than 1 then
set subject to filecount as string & " Files Attached: "
repeat with filename in namelist
set subject to subject & filename & ", "
end repeat
else
set subject to first item of namelist
end if
repeat with path in filelist
make new attachment with properties {file name:path} at after the last paragraph
end repeat
end tell
end tells
<end Command> That was submitted by Marc Liyanage.
There are 600 or so ready made commands in the library that can be used as examples to get you going.



On 2-Apr-09, at 11:56 AM, Michelle Steiner wrote:

How would one go about making an Applescript into a contextual menu item?

-- Michelle

--
Democrats think the glass is half full. Republicans think the glass is theirs



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40skyplex.net
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Contextual menus (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Unicode Character in File Name
  • Next by Date: Application does not fire on first drop
  • Previous by thread: Re: Contextual menus
  • Next by thread: Parallel Processing in AppleScript
  • Index(es):
    • Date
    • Thread