Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Need contextual menu to see path of an item

 
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  How to make AS wait for return from an applicatio..  
Author Message
Marina

External


Since: Jan 15, 2004
Posts: 35



(Msg. 1) Posted: Mon Mar 01, 2004 4:14 pm
Post subject: Need contextual menu to see path of an item
Archived from groups: alt>comp>lang>applescript (more info?)

Hi
What do I need do to create an AS that shows me the exact path of an item
and automatically copies it to the clipbopard when you highlight an item in
the folder and then trigger the script via left mouse button (contextual
menu)

Thank you very much

Karo

 >> Stay informed about: Need contextual menu to see path of an item 
Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 6253



(Msg. 2) Posted: Mon Mar 01, 2004 5:41 pm
Post subject: Re: Need contextual menu to see path of an item [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <BC68E7A2.20BAA%m_narlen@hotmail.com>,
Marina <m_narlen.TakeThisOut@hotmail.com> wrote:

 > What do I need do to create an AS that shows me the exact path of an item
 > and automatically copies it to the clipbopard when you highlight an item in
 > the folder and then trigger the script via left mouse button (contextual
 > menu)

I don't know how to trigger a script with contextual menus, but here's
the script to get the path and copy it to the clipboard.

tell application "Finder" to set the clipboard to item 1 of?
(the selection as list) as text

--
Never play strip tarot.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Need contextual menu to see path of an item 
Back to top
Login to vote
Sander Tekelenburg

External


Since: Nov 07, 2003
Posts: 742



(Msg. 3) Posted: Tue Mar 02, 2004 4:56 am
Post subject: Re: Need contextual menu to see path of an item [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <michelle-19D77F.14411301032004 DeleteThis @news.west.cox.net>,
Michelle Steiner <michelle DeleteThis @michelle.org> wrote:

[...]

 > I don't know how to trigger a script with contextual menus

On Mac OS X there's Big Cat. Pre-Mac OS X there's FinderPop.

--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Need contextual menu to see path of an item 
Back to top
Login to vote
Sandman

External


Since: Jul 03, 2003
Posts: 218



(Msg. 4) Posted: Sun Mar 28, 2004 4:52 pm
Post subject: Re: Need contextual menu to see path of an item [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <BC68E7A2.20BAA%m_narlen@hotmail.com>,
Marina <m_narlen.TakeThisOut@hotmail.com> wrote:

 > Hi
 > What do I need do to create an AS that shows me the exact path of an item
 > and automatically copies it to the clipbopard when you highlight an item in
 > the folder and then trigger the script via left mouse button (contextual
 > menu)
 >
 > Thank you very much

Download and install 'OnMyCommand' and download a script that does this, there
are many.

OMC is a CMM that enables you to execute shell scripts, so your shell script
would look like this:

echo -n __OBJ_PATH__ | pbcopy

--
Sandman[.net]<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Need contextual menu to see path of an item 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]