Subject: Re: [Name Mangler Talk] Prompt response value to Variable?

From: Rob Griffiths <[email-masked]>
Date: Sun, 17 Apr 2016 05:52:27 +0100

On Apr 15, 2016, at 7:45 PM, qb <[email-masked]> wrote:

> Okay - searching shows that "variables are on the future additions list" but perhaps someone knows a way of doing the following. So I'll ask! :-)

Sorry for the slow reply, but I had to coordinate with Peter (our founder/programmer) as this one was beyond my pay level :). It is possible:

Here's what Peter had to say about it:

"The trick is to make both the sequence and the prompt part of the same concatenate operation -- the way they had written their code, the sequence replaced the prompted-for text."

The attached .nma file should open in Name Mangler, ready to edit/use.

regards,
-rob.

----

---

From: qb <[email-masked]>
Date: Fri, 15 Apr 2016 11:45:27 -0700 (PDT)

Okay - searching shows that "variables are on the future additions list" 
but perhaps someone knows a way of doing the following. So I'll ask! :-)

I want a Droplet that will PROMPT me for some text such as "Hawaii Images".

Then the Droplet will add remove the existing file name and then use a 
Concatenate to generate the new name in the format:

3-digit sequence number " " Hawaii Images ".jpg"

so
001 Hawaii Images.jpg
002 Hawaii Images.jpg

etc.

I got this but cannot make use of the text from the Prompt.

NOTE: If I remote the brackets from around the Prompt I get prompted at 
EACH image for text and then these images are renamed to ONLY the entered 
text (no sequence numbers and no extension!)

[prompt "Enter some text"]

[concatenate
[sequence
start at "1", step "1"
sleep "0", maximum index "999"
minimum number of digits "3"
], " ",

[if
<extension>
then
[concatenate ".", <extension>]
else
" (no extension)"
]
]

thank you all!
qb