Solution:
- Drag the file into an empty Firefox window.
- Copy and paste the file path from Firefox's address bar.
- Share by email, iChat, or whatever.
|
|
|
Problem: You work with 50 people using Macs, and you need to direct someone to a file on the server which is buried 12 layers deep in the folder hierarchy. Unlike the web, OS X provides no way to "bookmark" a file.
Solution:
•
[28,407 views]
Hint Options
One way to share links to networked files
I can not check it right away, but what about
FilePathToClip CM Plugin
Another option is to use a Contextual Menu Plugin to be found here:
http://www.hsoi.com/hsoishop/software/
PathFinder
PathFinder (from Cocoatech) has a Copy Path command in the Edit menu that will do exactly what is required here--as in so many cases where the Finder just doesn't do something you need it to do.
PathFinder is inexpensive (but not free), and offers a lot of power to Mac users with advanced needs. I have no personal connection except as a satisfied user. www.cocoatech.com
One way to share links to networked files
I use Quicksilver, so all I would need to do is select the file in Quicksilver, run the Get File URL action, and then run the Paste action. VoilĂ , a proper link is pasted.
One way to share links to networked files
Not really easier, but Mail does seem to provide some support:
One way to share links to networked files
Can you create an alias to your desktop, then send that alias?
One way to share links to networked files
Yes, you can. At least, this has worked in all the network environments I've worked in, but those have always been 100% Mac networks. I expect things will get complicated quickly if this isn't the case. I also run static IP addresses on all my servers, further simplifying things. So while this has always worked properly for me, it probably doesn't work in many situations (I expect we wouldn't see this hint here if the "just make an alias" method worked for everyone).
One way to share links to networked files
Unlike the web, OS X provides no way to "bookmark" a file.Ever heard about .fileloc files?
One way to share links to networked files
An example script that (should) create .fileloc files of selected items in the finder (ideally place this as an application in Finder's window toolbar) :
(note I'm not an expert in Applescript, so use at your own risk)
One way to share links to networked files
I've used this cm module for years - PathSnagger from BergenStreet Software - http://www.bergenstreetsoftware.com/
One way to share links to networked files
Your post must be mistakenly placed as an answer to my applescript. Reading the description of this software, I can't see anthing related to what the script does: create a .fileloc file for every selected file or folder in the Finder (... with a bug for files contained in a folder whose name includes the char '/').
One way to share links to networked files
Once you get your file:// URI (filepath) and name (filename) set up, you can just use the following tell block instead of writing the plist skeleton yourself:
Saves a lot of code and lets the Finder do all the heavy lifting.
One way to share links to networked files
Thanks!
If it can helps, I then give the new version of the two scripts
One way to share links to networked files
What about this script, if you have to do it often? Save it as an application and drag it to the top of a Finder window.
(* I am hereby making it clear that this code was descended from Apple sample code, but that I've made changes. *)
tell application "Finder"
set the item_list to selection
if (count of item_list) is 0 then
try
set the item_list to {(folder of the front window) as alias}
on error
set the item_list to {path to desktop folder as alias}
end try
end if
end tell
set urls to ""
repeat with this_item in item_list
tell application "Finder" to set this_url to URL of this_item
set urls to urls & this_url & return
end repeat
set the clipboard to (urls as text)
One way to share links to networked files
I've gotten the path before by dragging the file or folder onto Terminal, and then copying and pasting it. Not sure if I was able to drag directly onto TextMate. TextEdit just embeds the file.
One way to share links to networked files
I usually use SuperGetInfo to copy a file's full path.
One way to share links to networked files
You can also drag a file onto the spotlight window in the finder. That will enter the file path, that you can copy to your clipboard. It's super quick when you just drag a file, hit command + <spacebar> and drop the file here, then copy path to clipboard.
One way to share links to networked files
Here's an applescript that I use to shared paths with coworkers on our lan:
http://putnamhill.net/applescript/copy-unix-paths
One way to share links to networked files
I tried many of these suggestions, and while it give a url, what it gave me was one based on a local file system, e.g. file://localhost/Volumes/SharedDocs/DaveSD.JPG
One way to share links to networked files
If you don't mind assuming the protocol and host you use something like the following:
http://putnamhill.net/applescript/copy-afp-paths Or this for a windows share: http://putnamhill.net/applescript/copy-unc-paths Looks like you could extract the protocol from the mount command if you want to get fancy.
One way to share links to networked files
I have Bare Bone's Super Get Info, and it has an option to copy to the clipboard either the HFS or POSIX path to a file. You could also drag a file into the Terminal window too.
One way to share links to networked files
Mmh, mixed results -- I did the following things:
A) to get the filepath like:
copy the previous copied filepath to a highlighted word via "Menu > Format > Link…" in TextEdit or Mail and add in front of the filepath "file://" -- this "linked" text is draggable to the finder and becomes a ".fileloc" file
B) or better:
C) or best:
D) combine the spotlight or the Contextual Menu tip w/ TextExpander like: prepare a snippet like Thinking: I'm sure there is someone who can build an AppleScript -- maybe with a dialogue -- to make this even easier
One way to share links to networked files
For the manual creation of .fileloc file you described in A, you can simply drag the file or folder to the text box of the dialog for link creation (in TextEdit, Mail, ...) and add the prefix "file://". Another solution is to drag to a Finder window the content of the Firefox's adress bar after the drag of a file or folder. The Applescript I wrote above may be an easier solution, though ;-)
One way to share links to networked files
To create .afploc files, i propose this Applescript :
(again, use at your own risk, with same problems on files or folder with a name containing the character '/')I don't know a way to obtain the afp server given a mount point, to avoid the dialog.
One way to share links to networked files
This version may preserve Umlaute:
http://putnamhill.net/applescript/copy-unix-paths
One way to share links to networked files
yes, it's working. thanks for the "umlaut" modification.
Bookmarking a file in Finder is easy.
Getting the file path is one thing but to make a bookmark in the Finder is possible and a lot easier than you think. At least for 10.5 Leopard.
Drag a file onto the toolbar of your Finder window. The cursor will show a green plus icon. Then release your mouse. The icon will now be a clickable button on the Finder window. And you can drop anything you like, even a link to a folder. the image example i linked to below, take a look at the icons left of the spotlight fields. http://img113.imageshack.us/img113/9522/finderbookmark.jpg
Bookmarking a file in Finder is easy.
Ah, sorry link did not work. here's a working version: http://img201.imageshack.us/img201/9522/finderbookmark.jpg
One way to share links to networked files
There is a control panel named WinShortcutter (http://www.lobotomo.com/products/WinShortcutter/index.html), unfortunately I did not get it to work on my network.
One way to share links to networked files
This looks like the winner
I take it back. It works great (WinShortCutter that is).
Just had to replace //G: with \\G:, don't we all love these little differences (well, that phrase makes more sense in German).
One way to share links to networked files
I liked the idea to use Spotlight. Nice - but doesn't work for me. Not to sure about the original tip either - I tried it and Firefox passed the files straight onto whatever normal app would open them (ie Word Doc -> Word). I'm not a big fan of Firefox anymore anyway - and will stick with the easiest way I know of doing this:
One way to share links to networked files
I've been looking for this for so long, being on a network of 80 Windows machines and 20 Macs, with a Linux/Samba fileserver.
One way to share links to networked files
Here is a script I created for a client. It gets the file/directory location of a dropped on item and copy's the location to your clipboard/pasteboard. If you'd rather download a precompiled script you can get it on my website (the cobbler has no shoes) [link:]http://www.solutionarts.net/freebies/loco.zipMake yer own(please give credit to code used to SolutionArts)--> Make a droplet (AppleScript Application)
on open theItem
--> Save the file as an application You can alternatively display the location by calling
display dialog "Copy the field text, then paste:" & return & "The file is located at: " default answer "" & return & fileName & return buttons {"Done"}
in the script above, replacing
set the clipboard to fileName
Hope ya like it. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.20 seconds |
|