Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Including an Apple Developer tool in an application



Hi,

Last year I put some small code on my website: http:// www.spherico.com/filetype/filetype.zip
It allows to get/set type and creator with an easy "call method" like


set typeCode to call method "typeCodeAtPath:" of class "FileManager" with parameter posixPath

if typeCode ="TEXT" then
…
else
…
end


Maybe that helps

Andreas


On 30.07.2005, at 02:18, Iyanaga Nobumi wrote:

Hello Chris,

On Jul 30, 2005, at 3:59 AM, Christopher Nebel wrote:


On Jul 27, 2005, at 10:22 PM, Iyanaga Nobumi wrote:



I am wondering if it is possible (legal) to include an Apple Developer tool (one of the tools in /Developer/Tools/) in an application that I write, and distribute on the web. I would put it in the Resources folder of the main bundle of my app; and of course, I would add a note of credit in my ReadMe.



I vaguely recall someone else asking this question some time ago -- for SetFile, I think -- and the answer was essentially "no", or at least "not without jumping through a bunch of hoops." What specifically did you have in mind? There may be some way to do what you need without Developer tools.



Thank you for your reply.

What I wanted to do with the tool (GetFileInfo, in this case) was a file filter in a Perl script, something like:

        $0 =~ /^(.*\/)/;
        my $cwd = $1;

        my $get_file_info = $cwd . "GetFileInfo";
        my $test = `"$get_file_info" -t "$this_file"`;
        if ($test eq '"TEXT"' . "\n") {
            return 1;
        }
        else {
            return 0;
        }

Of course, this could be done with AppleScript (Info for...?); but I wanted to do this in my Perl script. Would you see any way of doing this in a Perl script, without GetFileInfo?...

If there is no other way, I will try to:
verify if the user has /Developer
if he has it, let the user to use this file filter;
else, disable this feature...

Thank you in advance.

Best regards,

Nobumi Iyanaga
Tokyo,
Japan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/kiel% 40spherico.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden
References: 
 >Including an Apple Developer tool in an application (From: Iyanaga Nobumi <email@hidden>)
 >Re: Including an Apple Developer tool in an application (From: Iyanaga Nobumi <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.