Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Generating Macintosh Text Files

by Angel (Friar)
on Mar 03, 2003 at 14:53 UTC ( [id://240041]=perlquestion: print w/replies, xml ) Need Help??

Angel has asked for the wisdom of the Perl Monks concerning the following question:

I do not know where to start so I request your help in recomending where I should look for information since CPAN has some mac modules but most seem to deal with binary files and not text files

I am trying to dynamically generate ICA files for CITRIX logins which are basically text files with the server cluster name and the IP for the name substituted in

I can do this with PC files no problem I cannot make the resouce fork for Mac files.

Any links/tutorials for making Mac text files via perl would be greatly appreciated.

Replies are listed 'Best First'.
Re: Generating Macintosh Text Files
by hardburn (Abbot) on Mar 03, 2003 at 15:12 UTC

    Just a text file? DOS, *nix, and Mac all use ASCII text files. The only difference is in the line endings:

    # DOS/Win32 print "Hello, world!\r\n"; # *nix print "Hello, world!\n"; # Mac print "Hello, world!\r";

    MacOS X also uses "\n" for console programs.

    ----
    Reinvent a rounder wheel.

    Note: All code is untested, unless otherwise stated

Re: Generating Macintosh Text Files
by Nkuvu (Priest) on Mar 03, 2003 at 15:13 UTC

    Which Mac OS? If it's only for OS X then I think you only have to worry about line endings, not resource forks. It might be the same for OS 9 and earlier, but I really can't say for sure, since I have no experience with CITRIX.

    Best thing I can think of, though, is just to try it out and see. If you run into errors then you may have to do some more searching.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://240041]
Approved by Thelonius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-03-28 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found