Subject: Re: [Name Mangler Talk] Re: Adding Parent Directory to File's name?

From: Rob Griffiths <[email-masked]>
Date: Mon, 19 Sep 2011 11:55:04 -0700

On Sep 18, 2011, at 8:06 PM, Tudou wrote:

> I purchased Name Mangler through the App Store. How would I go about
> with a reinstall to correct the Droplet issue. I did have a demo
> installed prior and did not remove it before install. I was trying to
> Save the droplet to my desktop.

Can you save other files to your Desktop, without seeing a permissions dialog?

If you want to reinstall just the App store version, the easiest way to do that is:

1) Quit Name Mangler (NM) if it's running.
2) Use Spotlight to search for Name Mangler, and delete all copies of the app that you find
3) Launch the App Store, go to the Purchases tab, and click Install next to Name Mangler

regards,
-rob.

---

From: Tudou <[email-masked]>
Date: Sun, 18 Sep 2011 20:06:15 -0700 (PDT)

I was glad to figure out how to create my own solution. Thanks for
including the Advanced ability. I look forward to the updates.

I have seen staff in my office modify hundreds of file names the
'other' way. The ease of use on this App is incredible. Thanks. This
stuff should be in OS X.

For the "next feature" list, please add a Fill In option like we have
now in Text Expander to customize a list on the fly.

On Sep 18, 5:56 am, Rob Griffiths <[email-masked]> wrote:
> On Sep 16, 2011, at 10:28 PM, Tudou wrote:
>
> > Do you have a cook book available to help us out?
>
> We don't at this time; the built-in help is all we have for advanced mode.
>
> > Is it possible to add a variable in basic mode?
>
> At present, no. In a future version of Name Mangler, we're going to try to bring some of Advanced mode's features to the normal usage modes.
>
> > I tried to create a droplet for this but no droplet saves to the
> > folder specified. What's up?
>
> I was able to create a droplet with your code. This implies that there's a permissions issue with either the save location, or perhaps Name Mangler's permissions have gotten messed up. I'd suggest reinstalling Name Mangler, and verifying that your user has write ability to the chosen save location.
>
> regards,
> -rob.

---

From: Rob Griffiths <[email-masked]>
Date: Sat, 17 Sep 2011 14:56:05 -0700

regards,
-rob.

---

From: Tudou <[email-masked]>
Date: Fri, 16 Sep 2011 22:28:55 -0700 (PDT)

I see in Name Mangler's Help that it is possible to add a parent
folder's name to a file. But this is not available in Basic Mode. I
have looked through the examples but do not have enough coding
experience to create my own.

I was looking to add the parent folder's name as a prefix to the file
name. After a couple hours of trial-and-error I have worked out

[concatenate
	[insert
		[concatenate <parent> . " - "]
		at index "1" of <name>
	]
	[if
		<extension>
	then
		[concatenate ".", <extension>]
	else
		""
	]
]

This adds the parent folder's name as a prefix using [insert] and
keeps the extension.