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