Stupid Newlines

| | Comments (0)
With Mac::OSA, you can get the source of the compiled OSA script (such as AppleScript) that you are working with (unless it was saved without the source).

my $desc = OSAGetSource($component, $scriptid, typeChar);
my $source = $desc->get;

But even on Mac OS X, it is returned with Mac newlines, CR, instead of Unix newlines, LF. Even if the input source was with Unix newlines. use.perl.org

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on December 10, 2002 2:08 PM.

More on Mac::AppleEvents, Mac::OSA was the previous entry in this site.

No More TiVo is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.