I've fought ImageMagick install a few times, and again recently (it
is better, but still a pain).
One issue that affected me and probably would not affect others is I
needed to keep the non-universal builds of libjpeg et al out of
/usr/local, hence the prefix used in this, but probably not
My CamelPhones photo program stopped working and now just prints:
Error creating CFBundle from support bundle at URL
file://localhost/Library/Frameworks/CamelBones.framework/Libraries/darwin-thread-multi-2level-5.8.8.bundle
I tried checking out the CVS but ./configure; make just spews errors
and then write Mac::Clipboard using Mac::Pasteboard to expose only the
clipboard. In the SEE ALSO section you can reference Mac::Pasteboard
and people who need the advanced functionality can find it.
Interesting thought. The straightforward implementation would be to
have Mac::Clipboard
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
At 17:52 -0700 15/10/07, Chris Nandor wrote:
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (David Cantrell) wrote:
ie whether it's 10.0, 10.1 etc, I don't care about the difference
between 10.3.3 and 10.3.4.
This is nice in that it doesn't depend on external processes (sw_vers,
Finder)
At 20:55 -0500 10/8/06, Ken Williams wrote:
locate gluemac
While on this topic, one of the first things I do to any newly
installed Mac that I will use is to move the locate database update
from weekly to daily and remove the run as nobody so it runs as
root (otherwise it does not see any
Thanks for the various answers.
I have done the Perl - POV-RAY source before, as well as Perl -
3DML text format before.
I guess I could also use any scriptable drawing package (see
http://www.peter.com.au/programming/scripted-drawing.html ;-) and
do my own 3D conversion as necessary.
I could not figure out how to get the tool process's id. But by observing,
I notice that its pid is 'always' equals to child process's pid+1.
PIDs can wrap, so there is no guarantee of this at all.
Why do you call waitpid with -1, when you know the pid you want to
wait on ($kidpid).
The
I'm interested in producing some drawings/diagrams/pictures based on
3D data/objects generated from Perl. Something that would allow me
to write code that generates boxes, cylinders, spheres, etc with
various colours and material styles and generate an image (or
potentially an animation).
At 19:25 +0200 20/7/06, kurtz le pirate wrote:
hum... is 'end of line' caracter important ?
if not, you can do something like that :
while (FILE) {
chomp;
if (/?/) { ... }
}
yes ? no ?
Not really, because if the file is Mac line endings, then that will
read the entire file in a
I'm processing a string with embedded newlines. For testing I was
storing the text in __DATA__ and slurping it into a string. This works
fine. However when I read in a file, I'm having trouble with the line
endings. Matching begining/end of logical lines is not working as I
expect. Regexes like
At 14:52 + 15/2/06, Moisés Chicharro wrote:
My main aims being:
- check uploaded image filesize is not too large (most important)
Others have explained how to do this.
- check uploaded image physical pixel size
This can be done relatively easily by parsing the JFIF tags.
The
At 15:15 + 22/12/05, James Harvard wrote:
I'm trying to detect a file's line endings (\r\n for DOS, \r for Mac
and \n for Unix as I'm sure y'all know).
Is there any easy way to do this?
use Fcntl;
sub get_line_ending_for_file {
my( $file ) = @_;
my $fh;
sysopen( $fh, $file,
At 20:02 -0700 13/10/05, Ted Zeng wrote:
Here is the fun part: I made a killapp.pl script and
Call it to kill Bridge with
`killapp.pl Bridge `
And it kills itself.
As it turned out, the script finds itself from the list because the
Command line includes Bridge(or Adobe Illustrator for
My main question about the change to Intel is why the developer pack,
whatever it was, costs so much? What do you get for your $999? I was
expecting something free to download to developer members.
As others have said, they throw in a computer.
Keep in mind the Developer Transition System
the noise as we drift further and
further off topic, but it seems ti just added more.
At 23:27 +0800 3/6/05, Peter N Lewis wrote:
We're getting a bit too esoteric to continue on the list, but this
depends on the FTP server allowing rename/overwrite, which is far
from guaranteed, even under unix
Some friends have recommended vim and emacs to me. And one of the
reasons is he can remotely edit a text file very easily.
This has been mentioned a few times, but of course
TextWrangler/BBEdit both support Edit via FTP/SFTP, so presuming you
are SSHing to your target machine, then you can
Which reminds me... I've been using the #!/usr/bin/env
perl shebang for easier distribution, but env doesn't
like switches. Is there a way to set taint mode via
`use` or the like (ala use warnings; for -w). I can't
seem to locate anything in the manuals other than the
-T flag.
Correct me if I'm
At 23:16 -0700 24/10/04, Rich Morin wrote:
I find it a nuisance to have to hunt down the Picture #.pdf file
to rename it. It seems as if there should be a more direct way to
do this. For instance, I'd be happy to have a Open Dialog come up.
Am I missing something obvious here? I found a cute
And finally, I guess, this is basically all I want to use the ImageMagick for:
Image resizing.
Image compression - jpg
Finding image DPI
Finding image size
Clean up image (sharpen, etc.)
Well, other than sharpen, you can actually do all that in Image
Events which comes with Mac OS X (10.3?).
At 14:50 +1000 10/9/04, John Horner wrote:
Multi-file regular expression find replace functionality, with
nameable saveable expressions
That's the killer-app feature for me. I could actually say that I
think it's BBEdit that gave me my first glimpse of the power of Perl.
Also, if you're a Perl
\Mail is an incredibly complex thing, combine that with trying to
handle IPC issues when shelling out, then you are reinventing a
wheel that should definitely not be re-invented. Net::SMTP is an
example, though probably a more difficult one, there are lots,
Currently I'm using AppleScript to work on files and then
send them out to different folders on different servers.
But I'm running into problems where users don't know that
their file is finished because the icon doesn't appear in
their folder.
Generally they should appear if you touch the folder
At 9:02 PM -0500 11/1/04, Vic Norton wrote:
When I write another script to print out the bytes under __DATA__, I see
A5 if I execute the script from Terminal, and I see E2 80 A2 if
I run the script fom BBEdit, either directly or Run in Terminal.
But BBEdit can see A5. It just can't see it as
At 10:50 PM -0800 10/12/03, Chris Nandor wrote:
Anyone used this?
http://www.apple.com/downloads/macosx/development_tools/aemonitor.html
Downloading now, will be trying out laterish.
It looks pretty cool, please tell us all what you think.
Personally, I just recently used the AEDebug stuff in
Having spent hours trying to find a simple answer (learning lots
along the way), I'm still hoping that there is a simple answer:
Can I run one Perl script from inside another?
I have a large set of scripts that I usually run one-at-a-time, but
I want to create a controlling script so that I
At 7:23 PM -0700 13/9/03, Rich Morin wrote:
At 8:14 PM -0600 9/13/03, Doug McNutt wrote:
Icon\r files appear when, in earlier Mac OS's, a folder ...
This is interesting, but it doesn't answer the question of how one
opens a file with this sort of name weirdness. Basically, I think
I've found a
At 10:25 AM +0900 15/7/03, Thilo Planz wrote:
sherlock://com.apple.flights?new_windowtoolbar=hidden
itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/advancedSearchResults?songTerm=Bohemian
I am amazed by these sherlock:// and itms:// URLs.
Does anyone know how this works, if everyone can
At 9:55 AM -0400 11/7/03, Sherm Pendley wrote:
On Friday, July 11, 2003, at 09:26 AM, Elizabeth Mattijsen wrote:
Surely the install script can be made smart enough to make [n] the
default on Mac OS X?
Even if the test is done in very general terms - i.e. if it were
written to look for a
At 9:16 +0200 31/3/03, Wischnewski, Berndt wrote:
copies just the file, but the resulting test2.doc has lost the icon,
file type and creator. I think there must be a way, which I simply
dont now.
/Developer/Tools/CpMac
usage: CpMac [-r] [-p] [-mac] source-path dest-path
CpMac [-r] [-p]
At 2:37 PM +1100 2/3/03, Charlie Garrison wrote:
On 28/2/03 at 12:39 PM, Peter N Lewis [EMAIL PROTECTED] wrote:
In that case, don't even think about trying to build a smaller bundle
- people in general will not even blink before 10MB these days, and
in general wont worry about it until
At 11:38 AM -0600 1/3/03, Ken Williams wrote:
Actually, since I've done this, installing 5.8 over your stock perl
does not seem to cause any problems in general.
Maahahahahah, NOT YET, it hasn't!
Grin.
Actually, I tend to do these kinds of bad idea perl installations
from time to time,
At 9:39 PM -0500 27/2/03, Sherm Pendley wrote:
It seems like it would bulk up the download, though. For many folks,
disk space is plentiful - but bandwidth is not.
You can actually probably ignore this issue. I always felt this way,
but reality is that almost no on cares. Look at the stats for
eh, is not possible to get the values in parens when you do a reg match on an
evaled string ?
Yes, it is.
consider the snippt below, how do i get the values into $1, $2 etc ...
It'd be easier to explain exactly what you are trying to do.
my $str = /(.{11})(.{10})/i;
This assigns the result of a
And, now that I try it, it also looks inaccurate:
% sw_vers | grep 'ProductVersion' | awk '{print $2}'
10.2.4
% osascript -e 'tell application Finder to version'
10.2.1
Not inaccurate as such. The latter returns the Finder application
version. Presumably the former returns the
At 9:51 +0900 10/2/03, Thilo Planz wrote:
Hi all,
I have been playing around with Camelbones a little and placed my
results on SourceForge:
http://perl-pad.sourceforge.net/
Looks like the compiled binary is locked to perl 5.6, so it doesn't
work for me with perl 5.8. I could try to compile
At 16:44 -0800 6/2/03, Rich Morin wrote:
I'm using MacOSX::File::Info to get the Type and Creator codes for files.
In trying to print these (e.g., via NSLog and in an NSTextView), I ran
into a peculiar symptom: not only did the code not print, any following
information on the line also
At 1:07 -0800 16/1/03, Rich Morin wrote:
I then noticed that the script (and any daemons it might start up) was
running as root. Ungood. I worked around the problem by setting the
script setuid nobody, but this is not a really robust solution. I
also filed a bug, suggesting that Apple add a
Has anyone written (or know how to) write a Services plugin in Perl?
Perhaps it can be done with CamelBones, but I'd prefer pure perl if
possible (maybe with some inlines if necessary would be ok).
Thanks,
Peter.
--
http://www.interarchy.com/ http://download.interarchy.com/
#! line, permissions on the script, location of perl, etc. seem to
be ok. But when I try to run a script I get no result. No error
message, no hello world printed to the terminal. Tried redirecting
output to a file, but file was empty.
Check the line endings on the file, this is a classic
At 13:47 -0800 10/12/02, Adam Wells wrote:
One good way is to use AppleScript for both of these, with the
osascript command.
The following simple AppleScript will kill Internet Explorer:
-
tell application Internet Explorer
quit
end tell
-
Not that this is an AppleScript list, but
BBEdit diff:
I want a bbdiff command-line program. Something that will let me type:
bbdiff file1 file2
or
bbdiff dir1 dir2
to initiate a file comparison or multi-file comparison in BBEdit.
Ideally, Bare Bones would include something like this along side the
bbedit command-line tool, but I
At 13:51 + 25/11/02, Nicholas Clark wrote:
On Mon, Nov 25, 2002 at 02:33:45PM +0100, Rafael Garcia-Suarez wrote:
Chris Nandor [EMAIL PROTECTED] wrote:
That shouldn't work. By the time you get to it in the script,
if you have a
#! line, then the entire script is one long comment, and
At 15:09 +1100 26/11/02, Ken Williams wrote:
On Tuesday, November 26, 2002, at 12:49 PM, Peter N Lewis wrote:
But is there any reason the # comments are not terminated by the
first occurrence of *either* \012 or \015?
There's nothing perl can do about this - the OS (in fact, the
kernel, I
At 9:42 + 21/11/02, John Delacour wrote:
Now why don't I get a bell but when I do ( print \a ) or ( print
\007 ) in 10.2.2/Perl5.8.0? It works fine in MacPerl and no
character is printed but in OS 10 the only way I've found is:
$/ eq \015 and `osascript -e beep` ;
which slows things
At 13:22 + 20/11/02, John Delacour wrote:
if (/\015\012/) {
$/ = \015\012 ;
} elsif (/\015/) {
$/ = \015 ;
} else {
$/ = \012 ;
}
You can do this with one regular expression which will pick up the
first line ending:
$/ = /(\015\012|\015|\012)/ ? $1: \n;
Note that because
At 16:30 -0800 19/11/02, Heather Madrone wrote:
I've already encountered a few text file anomalies on OS X. Most GUI
applications seem to default to Mac-style text files (linefeeds
only), but shell programs such as vi do not handle Mac-style text
files gracefully.
Is perl on the Mac going to
At 19:01 -0800 19/11/02, gene wrote:
An alternative is to read the entire file in (undef $/) and then split it:
My suggestion is to put some code like this in your script:
It's a good solution. Probably for files less than a few hundred k
it makes no difference (since you'll need to read
If you do ensure your fink Trees: has the unstable/main in it, and do:
fink selfupdate-cvs
then I think it will install imagemagick-nox for you without any problems.
Unfortunately, perlmagick-pm still seems to be a version of
imagemagick back and so it needs to be installed manually.
Anyway,
At 11:39 -0800 16/11/02, drieux wrote:
[jeeves: 1:] perl -MConfig -e 'print $Config{osname} \n; '
As for how this gets set - it gets set when your version of perl
is built for that specific OS.
which in turn is stored in Config.pm, typically somewhere like
/Library/Perl/darwin/Config.pm or
At 7:58 -0500 15/11/02, [EMAIL PROTECTED] wrote:
Well, I for one, use Maya from SGI|Alias|Waefront - and it doesn;t
support 10.2 - there are a number of dialog boxen which get very
screwed up by it.
Are there any other packages which work under 10.1- not in 10.2+ ?
Yes, there have been quite
At 14:18 -0500 13/11/02, John Siracusa wrote:
On 11/13/02 11:46 AM, Adrian Howard wrote:
And CVS support too! Excellent!
Hrm, not so excellent for me so far...it just hangs with the connecting
dialog box and then fails. CVS works fine from the command line. Maybe
BBEdit isn't picking up my
? Possibly Anarchie 4.0 --Peter N Lewis, 12/99)
(glad to see they finally made it ;)
Yeah, must be one of those features we've run out of, or maybe
something not too difficult we could implement ;-)
Peter.
--
http://www.interarchy.com/ http://download.interarchy.com/
Sigh, here is yet another account of making ImageMagick and Perl work.
I just upgraded to 10.2. So I cleaned out my perl installation and
installed perl 5.8 (ok, so this is living a bit on the edge).
To get ImageMagick working I did this:
fink install imagemagick-nox
sadly it could not find
The following code ends up with an error (segmentation fault):
$_ = 'x' x 1000;
/(a.|.){2,}/o;
The segmentation fault seems to happen only when the searched text
($_ in this example) is longer than 855 characters.
I know that m and n in the {m,n} qualifier are limited, but there
isn't a
At 11:42 -0600 4/11/02, Bill Stephenson wrote:
Thanks Randal! I've wanted to play with PerlMagick for years. I've played
with ImageMagick but never got PerlMagick installed. I'm gonna have to try
it our now.
It is quite amazing. I had a really old newsletter that I want'ed to
make available,
At 3:09 -0500 10/10/02, _brian_d_foy wrote:
this means that the 20 fixed bytes between the volume name and the date,
which are \000 in every case i looked at, is really 27 - (length of volume
name). i can name partitions with names up to 27 characters, but if i go past
that it look like it
At 16:20 -0600 14/7/02, Charles Albrecht wrote:
I use .term files by editing the ExecutionString value in
the XML to have...
keyExecutionString/key
stringssh foo.bar.baz; exit/string
behave as I want it to behave.
Furthermore, I toss frequently-used .terms into
At 14:33 -0400 3/7/02, Sherm Pendley wrote:
Judging by the path displayed here, you were a little quick on the
trigger, and answered 'y' when the configuration requsted a
pathname. Don't feel bad, it's happened before - check the list
archives. :-)
Hmmm, if it has happened before, perhaps it
At 9:39 + 24/6/02, Tor Hildrum wrote:
Somewhere around test 85 the Mac crashes badly. Even from user mode.
That is strange. The kernel shouldn't really panic, unless you where running
this process in kernel space. Trying to access an I/O port or
hardware-mapped memory shouldn't give you
At 14:05 -0700 4/6/02, Alex S wrote:
I'd prefer to see if we could convince the developers at Apple to
use a better file system. I'm hoping that one of the new people on
the core Apple dev team (forget his name at the moment), who is a
filesystems guy, is there to make that all better! A
At 19:08 -0700 15/5/02, The Ogre wrote:
Ok, I'm close to giving up, and that's not like me... If there's more
than one way to do it, please somebody show me one...
OroborOSX over XDarwin seems to be the closest approximation I've found.
Please, a ray of light, I beg of you. They can do it in
At 22:09 -0400 28/4/02, Michael Turner wrote:
Thanks for your response. I remain puzzled, however. Your response
seems to imply that if I invoke print from the command line, it
will be interepreted. This is not the case, it errors.
Sure it will - if you are using the sh shell. Try this:
Is there any way to globally add an INC directory to Perl after compilation?
But it doesn't get set when I run Perl from within BBEdit or cron.
Is there any way to do this so it is truly global (it can just be
across me as the user or for all users, since I'm the only user
anyway, as long as
PROTECTED]
Mime-Version: 1.0
X-Sender: peter@pop
Date: Fri, 12 Apr 2002 17:07:11 +0800
To: MacOSX Perl [EMAIL PROTECTED]
From: Peter N Lewis [EMAIL PROTECTED]
Subject: Getting ImageMagick/PerlMagick to work
Hi all,
I finally got ImageMagick to install and work for me, perhaps this
will help
Hi all,
I finally got ImageMagick to install and work for me, perhaps this
will help someone else...
I think pert of the problem might be that I have perl 5.6.1 installed.
Anyway, I eventually got it to install by using fink, but then it
failed because it wanted _ParseGeometry, which I think
At 18:31 -0600 3/4/02, Chris Devers wrote:
So is it Storable.pm that's corrupted? Think it'll help to rebuild it?
I have some memory of reading something where Storable was used with
a lowercase s, and so it was loaded (successfully, because of the
case insensitivity) and then not found next
At 11:28 +0800 21/3/02, Peter N Lewis wrote:
But when I try to use CPAN, I get these errors:
cpan install Bundle::CPAN
dyld: perl Undefined symbols:
_PerlIO_getc
_PerlIO_putc
_PerlIO_read
_PerlIO_write
_Perl_sv_2pv_flags
Ok, it turns out my problem was either my library path or not running
I've installed perl 5.6.1, and I just did an install of CPAN 1.59 from
http://www.cpan.org/authors/id/A/AN/ANDK/CPAN-1.59.tar.gz
But when I try to use CPAN, I get these errors:
cpan install Bundle::CPAN
dyld: perl Undefined symbols:
_PerlIO_getc
_PerlIO_putc
_PerlIO_read
_PerlIO_write
Is there any good way to read a file in a way that is independent of
the newlines used in that file?
Mac typically uses CR line endings. Unix typically uses LF line
endings. And DOS Network (eg HTTP, FTP, etc) typically use CRLF
line endings.
Ideally, it would be possible to set $/ to
At 21:13 -0500 7/2/02, Brad Rice wrote:
How do you call Applescript from Perl? I want to make a CGI that
runs an applescript.
In MacPerl, use:
MacPerl'DoAppleScript(END_SCRIPT);
tell application Finder
move alias $folder to trash
end tell
END_SCRIPT
I believe
71 matches
Mail list logo