Code: Select all
$n = "<curbase>"; $p = getinfo("path", i); new $p."\".<curbase>,dir; #802; #485; sel 1; sel [$n]; #172
Code: Select all
$n = "<curbase>"; $p = getinfo("path", i); new $p."\".<curbase>,dir; #802; #485; sel 1; sel [$n]; #172
Hi Joso, welcome.Joso wrote:This is just a line of code, but (being new to this program) it took me a couple of hours to figure out. All it does is create a new folder in the inactive pane from the "curbase" text having focus when the program is invoked. - It leaves the new folder in rename mode so the new folder name can be modified if needed, or just hit enter twice and you're in the new folder. For what it's worth .. (watch some expert show me this function is already buried in the program somewhere) Cheers.
Code: Select all
$n = "<curbase>"; $p = getinfo("path", i); new $p."\".<curbase>,dir; #802; #485; sel 1; sel [$n]; #172
Code: Select all
$n = "<curbase>";
$p = getinfo("path", i);
new $p."\".<curbase>,dir;
#802; //Ctrl+Alt+F10 Toggle Active Pane
#485; //F5 Refresh File List
sel 1; sel [$n];
#172; //F2 RenameCode: Select all
$n = (<curbase>)? <curbase>: "New folder";
focus "PI";
new $n,dir,,r; copy paste of my answer on the teracopy thread:Joso wrote:Yes - when I started reviewing the scipt exchange area, I could see that the teracopy thread was the most active, so I started there. The thread is not presented chronologically, but the first item contained a link to the most recent revision of the script - so I downloaded and thought I'd try it out to see what it did before wading thru the thread.
Problem was that the XY load command couldn't find the script because it was named "teracopy6.8.xys". So instead of reading, I continued to fiddle (as I've been doing with these machines for some time now) - AFTER - an hour or so of trying the different methods to load a script, fiddling with the path and path variables and punctuation, (head scratching, shoulder shugging and coffee sipping) - I finally tried renaming the file and the damn thing finally ran. - It was then that I found that the last item in the thread (actually the most recent) mentioned having to change the file name of the script. Sheesh. Why give your script a name that XY chokes on? - Gotta be some form of sadism.
Stefen, on the other hand, seems to know how stupid a newbie can be, and lays out his tweaks with precision and clarity. I realize that there's a learning curve and that the old pros are not in business to spoon feed the new guys, but as an old newbie, I'm just glad that someone out in XY land is holding my hand. (He even took the time to comment the code I had posted to start with!) I do enjoy exploring what XY can do, and I'll get around to reading and re-reading everything as the utility of this program becomes evident. Cheers. Joe
there's no need to rename the script file.
i use the name teracopy6.8.xys on all my UDCs and CTBs and they work without a problem.
maybe you forgot to quote the name on the load command.
well, i'll change the name, anyway.
it should make things easier from now on.