Home › Forums › OS X Server and Client Discussion › File Serving › Can AFP Open a File?
- This topic has 4 replies, 3 voices, and was last updated 20 years, 2 months ago by
rshah.
-
AuthorPosts
-
February 8, 2005 at 6:31 pm #360633
rshah
ParticipantI would like to have a link that opens a file. Right now when you click on the link, it only opens in Finder. Is it possible to launch a document using AFP?
For example:
afp://myserver/Share/test.pdfI would like to open/launch test.pdf, but right now, when I click on the link, it only opens the shared folder in a finder window with the document highlighted.
Thanks for reading
RajFebruary 8, 2005 at 9:06 pm #360637luis
ParticipantHow are you planning to open this file? what is coing to execute the command?
February 9, 2005 at 2:16 am #360641rshah
ParticipantThanks for the comment, it clarified the issues for me.
My goal was to have a link in the mac Address Book or a web page that linked to a PDF. I was hoping if I used afp, I could get the PDF reader to open the page at the correct location. This way if a person edits the file, they can just hit save and not have to figure out the correct location. But it looks like if I use AFP, the user will have to open the file through the finder window.
My other option is to use http to serve the files. The problem here is that Safari will download the PDF files and so users will have to renavigate through the file structure to save the file.
I am just trying to make it easy for my users. It looks like neither http or afp will do exactly what I want.
Any advice?
February 10, 2005 at 5:09 pm #360667cyngus
ParticipantI don’t know if this will work for your purposes, but it might. You could write an Applescript to open the file. I assume that the file or files will change over time. If this is the case then you just have to write the AppleScript to parse the web page containing the link to the file. Unfortunately I don’t know of a way to launch an applescript from a web browser. I guess it would help to know a little more about what file(s) will need to be opened, how they change over time, how many of them there are, etc.
February 10, 2005 at 7:03 pm #360670rshah
ParticipantThanks cyngus for an interesting idea
I have a PDF form that I want to attach to contacts in the address book. The PDF just contains more information than can be held in the address book. My goal was to make it easy for anyone to view or edit the information in the PDF file.
I could probably use an Applescript in Address Book to open the PDF file (and not download like in Safari, which means that if someone edits the document they have to know the correct location to put the file). The script would just open the document listed in the hompage field of Address book with a PDF reader. I don’t know for sure, but it seems that applescript could do that.
I was hoping for even a simpler solution that would involve just a link. (Using a script is a few more steps for the user). But I think that applescript is probably my best solution. Now I have to figure out how to do this with applescript.
Thanks for all of your help
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed