Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Little amlint improvement/fix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Little amlint improvement/fix



Thanks, Stefan. We fixed this a while back internally, and it will be available in the next release of the developer tools.

Todd

On Nov 7, 2005, at 9:00 AM, Stefan Arentz wrote:

Other people might find this interesting too ...

I discovered that amlint doesn't know about .definition bundles that are installed in ~/Library/Automator. This is annoying but easy to fix. Turns out that amlint is written in Perl so a quick fix was simply found:

Around line 155, simply add this section:

foreach ( glob("~/Library/Automator/*.definition") )
{
my $d = plist(-f $_ ? $_ : "$_/Contents/ Resources/definition.plist");
# XXX: handles the now-obsolete file-based definitions.
push @defined_types, keys %{$$d {'defined_types'}};
}


Not sure what the XXX comment means, but it is also in the original code.

 S.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Automator-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Little amlint improvement/fix (From: Stefan Arentz <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.