Re: Open a linked jpeg in Photoshop instead of the browser itself
Re: Open a linked jpeg in Photoshop instead of the browser itself
- Subject: Re: Open a linked jpeg in Photoshop instead of the browser itself
- From: Roger Howard <email@hidden>
- Date: Fri, 29 Jan 2010 08:58:22 -0800
On Jan 29, 2010, at 7:48 AM, Bert Groeneveld wrote: Hello,
I'm working on a nice applescript in which I build a complete html file containing a table with rows and columns and a lot of links to jpeg files. The script writes the html file to a (shared) disk so that other users can open it in Safari or Firefox. The user then will see a nice table that I built up with my script, including the links. From that point I am trying to let users open the linked files in Photoshop directly from within the browserwindow, instead of opening the linked files in the browser itself (as if Photoshop was the helper application of the browser). Is there a(n Applescript) way to make this possible? The links in the file look like this: file:///Volumes/Fotostudio-ServerDisk/A/Anotherfolder/0960907000057000.jpg
What you want to do is create an AppleScript that is a handler for a custom URL protocol, and then construct your links accordingly.
For instance, your links could be something like:
<a href=""photoshop://Volumes/Fotostudio-ServerDisk/A/Anotherfolder/0960907000057000.jpg">photoshop://Volumes/Fotostudio-ServerDisk/A/Anotherfolder/0960907000057000.jpg">
And you just need to write an AppleScript that handles the "photoshop" protocol by simply telling Photoshop to open each file passed to the script.
See this for documentation:
-Roger |
_______________________________________________
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