Reply to topic  [ 9 posts ] 
finding a file path --- out of the wilderness 
Author Message
User avatar

Joined: 2003-09-30 21:33:58
Posts: 351
Is there an easy way to copy a file path, so it can be linked into a document

i.e.

file:writer/plays/1771/1771.rtf

I have an amazingly hard time going back and forth --- copying and pasting --- backing up folder by folder.

Thanks for any help

_________________
I have never let my schooling interfere with my education/Mark Twain (1835-1910)


2007-06-27 10:53:35
Profile
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
Post 
I'm not sure there's any way for the Finder to give you this information easily. As you say, copying each folder name is tedious.

You could open the file in NWP and then use the "Insert Document Path" macro. Here's another macro that copies the current document's path to the clipboard:

Code:
$path = Document Property “file path”
Write Clipboard $path


2007-06-27 14:18:21
Profile WWW
User avatar

Joined: 2007-01-17 03:25:42
Posts: 729
gemboy27 wrote:
I have an amazingly hard time going back and forth --- copying and pasting --- backing up folder by folder.
If I understand you correctly, you want to get the path of several items at the same time. In this case, you can open a new file in SubEthaEdit and drag and drop on to it the icons of all the files and/or folders whose path you want. All paths will be written to the open SubEthaEdit file.
You can download SubEthaEdit 2.2, which is still free, from:
http://www.codingmonkeys.de/subethaedit/old.html


2007-06-28 04:32:19
Profile
User avatar

Joined: 2003-09-30 21:33:58
Posts: 351
Post 
Not several at the same time

but several

Like if I created a NW-P document that wuold be kind of an index
and in it would be hyperlinks to several projects that i am working on

one o fthe things I do is have "the project" file and then I often have a couple auxiliary files that go with it: "the project notes" "The project outline"

so having the links to t hem in one file or having links from a to b+ c; c to b + a; and b to a + c. is helpful...

did I muddle it more

_________________
I have never let my schooling interfere with my education/Mark Twain (1835-1910)


2007-06-28 07:26:56
Profile
User avatar

Joined: 2003-09-30 21:33:58
Posts: 351
martin wrote:
I'm not sure there's any way for the Finder to give you this information easily. As you say, copying each folder name is tedious.

You could open the file in NWP and then use the "Insert Document Path" macro. Here's another macro that copies the current document's path to the clipboard:

Code:
$path = Document Property “file path”
Write Clipboard $path


just what I was looking for.

is there some place to find code for those macros -- a quick look in the manual didn't turn up anything...

_________________
I have never let my schooling interfere with my education/Mark Twain (1835-1910)


2007-06-28 07:31:01
Profile
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
Post 
Besides the macros that come with NWP, you can look at the macro repository. There's not much there yet, but hopefully it will grow once NWP is out. You could also post/read the macro forum.


2007-06-28 13:35:17
Profile WWW

Joined: 2003-11-21 19:25:28
Posts: 333
Location: Sydney, Australia
Post 
You can do the same thing with Applescript for any file in the Finder. No need to launch NWX.
Code:
set itemPath to ""
set uPath to ""
tell application "Finder"
   activate
   set itemPath to selection as string
   set uPath to POSIX path of itemPath
   set the clipboard to uPath
end tell


Select the file or folder you want the path to in the Finder, run the above script, and it's path is placed in the clipboard.


2007-06-28 14:12:47
Profile
User avatar

Joined: 2003-09-30 21:33:58
Posts: 351
great, it's the first time I have used a script --- I think

_________________
I have never let my schooling interfere with my education/Mark Twain (1835-1910)


2007-06-28 14:21:20
Profile
User avatar

Joined: 2003-09-30 21:33:58
Posts: 351
Post 
martin wrote:
Besides the macros that come with NWP, you can look at the macro repository. There's not much there yet, but hopefully it will grow once NWP is out. You could also post/read the macro forum.


I have looked at both, and as you mentioned, not much going on. hopefully more to come.

_________________
I have never let my schooling interfere with my education/Mark Twain (1835-1910)


2007-06-28 14:22:50
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software