Page 1 of 1

No Idea how to make this

Posted: 05 Jan 2022 21:37
by mikeshick
Can I get a script that would take the current address, say:

P:\Nilon, John & Lourdes (John Kelly)\Billing

And change it to:
Z:\Dropbox (MED)\MED\Projects\Nilon, John & Lourdes (John Kelly)\Billing

Re: No Idea how to make this

Posted: 05 Jan 2022 23:10
by highend
Just look up the replace() command

Re: No Idea how to make this

Posted: 05 Jan 2022 23:56
by mikeshick
Thank you. Maybe I'll learn scripting one day. Is there still a fellow that writes scripts out for $5?

Re: No Idea how to make this

Posted: 06 Jan 2022 22:27
by mazot
Here's a script not tested. So test on non critical folder first.
ChangeOfAddress.xys
(575 Bytes) Downloaded 123 times
Hope it does what you desire if not inform us.

Re: No Idea how to make this

Posted: 06 Jan 2022 23:55
by mikeshick
super kind of you. It doesn't work. brings up dialog, but when selecting desired rule, nothing happens.

Re: No Idea how to make this

Posted: 17 Jan 2022 23:12
by mikeshick
This script didn't work. Any chance you're able to assist any further?

Re: No Idea how to make this

Posted: 17 Jan 2022 23:24
by highend

Code: Select all

$dst  = "Z:\Dropbox (MED)\MED\Projects\";
    $path = $dst . gpc(<curpath>, "component", 2, 2);
    text $path;

Re: No Idea how to make this

Posted: 18 Jan 2022 00:51
by mikeshick
very kind of you. That works. How might I have it automatically open a new tab with the new address?

Re: No Idea how to make this

Posted: 18 Jan 2022 03:31
by RalphM
So far this path is only a text string (for all we know) so this path would first need to be created before you can actually open it in a new tab.

Re: No Idea how to make this

Posted: 18 Jan 2022 04:48
by mikeshick
Sorry...I'm not sure how your comment helps. The given is that I have a path already. I would like to take highends command, and then insert it into a new tab.

Sorry, no intention to be obnoxious. Maybe I missed something you're trying to say.

Re: No Idea how to make this

Posted: 18 Jan 2022 04:54
by jupe

Code: Select all

$dst  = "Z:\Dropbox (MED)\MED\Projects\";
    $path = $dst . gpc(<curpath>, "component", 2, 2);
    tab("new", $path);
All the scripting commands are documented including examples, and the names of them are pretty self explanatory, that is if you ever wanted to put some effort into trying yourself.

Re: No Idea how to make this

Posted: 18 Jan 2022 06:32
by mikeshick
I'd rather pay someone for coffee or lunch to write few small ones for me from time to time. I appreciate the help.

Re: No Idea how to make this

Posted: 18 Jan 2022 08:44
by highend
Then drop me a pm (personal message) when you need something...