I'm trying to generate a report by using a Ruby script to parse an XML document. I'm pulling link text and the actual URL and I'd like to be able to format those in a way that I could simply copy/paste the results into Pages/Numbers and have the hyperlink with correct link text immediately set. Is there a way to do this?
|
feedback
|
|
The output will always include styles. For some reason | ||||
|
feedback
|
|
If you want to copy / paste a link with a descriptive text different from the URL into Pages, the OS X pasteboard needs to contain an URL object (not plain text or HTML). In Ruby, you can create such a URL pasteboard object using the pasteboard gem (
See the gem documentation, where I lifted this example wholesale. | |||
|
feedback
|