Re: adding links to html pages
Re: adding links to html pages
- Subject: Re: adding links to html pages
- From: Doug McNutt <email@hidden>
- Date: Sun, 20 Jul 2003 18:12:30 -0600
At 08:24 +1000 7/21/03, Kelvin Aitken wrote:
>
What I have is a few thousand web pages made in Photoshop and a few more
>
made in iPhoto. Both have the ability to batch create web pages with
>
thumbnails, links to larger images, other thumbnail pages, etc. What they
>
do not give you is the ability to add a link to a web site on each page
>
as they are created since the pages will be used as part of a larger web
>
site and not as a site in themselves.
snip
A common use of perl, sed, streamedit, or other line by line scripting languages - AppleScript - is to read am HTML file in order to extract a few gems of information without displaying the whole thing with its pictures and tunes. I have a bunch of perl that does that. There is also a bigger bunch of perl that creates whole HTML pages on the fly.
It would be fairly easy to read a line, search for some expected text, replace that text with something else, and write out the possibly altered line. Perhaps some existing code could be easily modified.
Is there one of these HTML files up on the web where it can be found? Can you look at it and add the HTML you want with an editor? Can you write down what you did in words like. . . "I scrolled down and found where <A>xxx occurred and added <A href="myURL">stuff<A>". You can open a modified file with your browser without putting it on a web site.
When iPhoto displays a "final" image it downloads a jpeg to the full screen. If you mean to modify that picture so that it contains a clickable anchor you have a serious problem.
Do it once by hand. Keep notes. And then let us at it.
--
Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.