No Idea how to make this

Discuss and share scripts and script files...
Post Reply
mikeshick
Posts: 124
Joined: 06 Jul 2020 10:28

No Idea how to make this

Post 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

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: No Idea how to make this

Post by highend »

Just look up the replace() command
One of my scripts helped you out? Please donate via Paypal

mikeshick
Posts: 124
Joined: 06 Jul 2020 10:28

Re: No Idea how to make this

Post by mikeshick »

Thank you. Maybe I'll learn scripting one day. Is there still a fellow that writes scripts out for $5?

mazot
Posts: 42
Joined: 20 Apr 2020 23:19

Re: No Idea how to make this

Post by mazot »

Here's a script not tested. So test on non critical folder first.
ChangeOfAddress.xys
(575 Bytes) Downloaded 116 times
Hope it does what you desire if not inform us.

mikeshick
Posts: 124
Joined: 06 Jul 2020 10:28

Re: No Idea how to make this

Post by mikeshick »

super kind of you. It doesn't work. brings up dialog, but when selecting desired rule, nothing happens.

mikeshick
Posts: 124
Joined: 06 Jul 2020 10:28

Re: No Idea how to make this

Post by mikeshick »

This script didn't work. Any chance you're able to assist any further?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: No Idea how to make this

Post by highend »

Code: Select all

$dst  = "Z:\Dropbox (MED)\MED\Projects\";
    $path = $dst . gpc(<curpath>, "component", 2, 2);
    text $path;
One of my scripts helped you out? Please donate via Paypal

mikeshick
Posts: 124
Joined: 06 Jul 2020 10:28

Re: No Idea how to make this

Post by mikeshick »

very kind of you. That works. How might I have it automatically open a new tab with the new address?

RalphM
Posts: 1932
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: No Idea how to make this

Post 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.
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

mikeshick
Posts: 124
Joined: 06 Jul 2020 10:28

Re: No Idea how to make this

Post 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.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: No Idea how to make this

Post 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.

mikeshick
Posts: 124
Joined: 06 Jul 2020 10:28

Re: No Idea how to make this

Post 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.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: No Idea how to make this

Post by highend »

Then drop me a pm (personal message) when you need something...
One of my scripts helped you out? Please donate via Paypal

Post Reply