|
|
Choosing A Webhost: |
Re: Mac OS alias from Perl: msg#00022lang.perl.macosx
At 19:01 -0500 8/12/07, Dan Neville wrote: Does anyone know how to make a Mac OS alias in Perl? So, I wish to have Perl create aliases in multiple directories rather than copy the original file. There actually is no API call to create an alias file. You can do it in Perl as described at <http://use.perl.org/~pudge/journal/10437> Alternatively, you can make a new alias via AppleScripting the Finder as: set thaAlias to "Harddisk:Users:peter:thefile.cpp" as alias tell application "Finder" set f to make new alias file at desktop to thaAlias end tell f Which will return the alias file created. Enjoy, Peter. -- Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac <http://www.stairways.com/> <http://download.stairways.com/>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Mac OS alias from Perl, Dave Gomez |
|---|---|
| Next by Date: | Re: Mac OS alias from Perl, Doug McNutt |
| Previous by Thread: | Re: Mac OS alias from Perl, Michael Barto |
| Next by Thread: | Re: Mac OS alias from Perl, Doug McNutt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |