[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Variables into MacPerl Ask



Nick Thornton asked:

> I'm working on adding versitility to my MIME converting program.
>  When using MacPerl::Ask is there any way to put a variable into
>  the question?

> This is maily for making the second question something like "TEXT/????" then
> the input box (assuming you put TEXT in as the type).

How about:

#!perl -w
$type = MacPerl::Ask('Type?');
$creator = MacPerl::Ask($type.'/Creator?');   # <-- different
MacPerl::SetFileInfo($creator, $type, @ARGV)


Charles

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org