Search found 22 matches

by MonkeyButt
16 Sep 2024 00:37
Forum: Script Exchange
Topic: Recent Location and Show Icon command ?
Replies: 5
Views: 4667

Re: Recent Location and Show Icon command ?

jupe wrote: 15 Sep 2024 18:46 Now I am still only guessing, but I assume you mean the toolbar button, so do you want to turn off icons in the tree, but have 1 icon visible only for the folder you are currently in? If so, not possible.
That is exactly what I want to do although it can't be done.
by MonkeyButt
15 Sep 2024 15:05
Forum: Script Exchange
Topic: Recent Location and Show Icon command ?
Replies: 5
Views: 4667

Re: Recent Location and Show Icon command ?

Right click the icon; tree path tracing. There you will see, recent location pins & show icons. I want to access these individually as to have the icon show for a folder in the tree.
by MonkeyButt
15 Sep 2024 03:25
Forum: Script Exchange
Topic: Recent Location and Show Icon command ?
Replies: 5
Views: 4667

Recent Location and Show Icon command ?

What is the command for, recent location pin ?

Tree Path Tracing has an option to show icons, although I'm looking for a command as to show the icon for a selected folder.
by MonkeyButt
03 Jan 2024 16:51
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

Are you f*** serious? You've been told to activate "Syntax Checking". You didn't You've been told that $askusr will only contain one item, iterating over one item is... <no comment> And now you add another loop inside that ALSO loops over a single item??? No $i incrementation inside the l...
by MonkeyButt
03 Jan 2024 15:51
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

A bit rich of you to ask what is going on here in your post #17 and question the helpfulness of long standing forum members who have helped countless users over the years. You post snippets of your code without any explanation what the variables at the start of your snippet contain and then expect ...
by MonkeyButt
03 Jan 2024 05:05
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

My original question was to append a variable to an array. HighEnd mentioned to initiate the variable outside of the forEach loop, then within the forEach loop iterate over that variable. $i = 0; foreach($iten,$askusr){ $ccPath = listfolder($iten,input("Folder to Find",,,e,300,300),2,||); ...
by MonkeyButt
01 Jan 2024 22:05
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

highend wrote: 01 Jan 2024 17:50 As if I hadn't written a single post in this thread...

Ofc it's possible to iterate this way. But you are (as always) providing NO DATA at all so I won't spend any more time on this
I have provided data in previous post; why post the same thing twice and what is wrong with some theory, nothing.
by MonkeyButt
01 Jan 2024 17:12
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

Adding to an array is possible but it seems arrays can't contain subarrays... $i = 0; foreach($iten,$askusr){ $ccPath = listfolder($iten,input("Folder to Find",,,e,300,300),2,||); $pArray[$i] = $ccPath; $i += 1; } Are you sure this is how you iterate though an Array. I tried this and it s...
by MonkeyButt
31 Dec 2023 16:03
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

No info about what $ccPath contains or the output of implode() looks like... Educated guess: No ","-delimited entries in the array => Hence not a correct index access... $i=0; is initialized outside of the forEach loop, within the forEach I have $i+=1 and $ccPath does show the list of fol...
by MonkeyButt
31 Dec 2023 04:31
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

Code: Select all

$pArray[] = $ccPath
Should take all folders and place them into the Array and that works when I implode() but trying to access an individual item in the array $pArray[3] doesn't work ?
by MonkeyButt
30 Dec 2023 03:58
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

I have a question why this line of code;

Code: Select all

$ccPath = listfolder($iten,input("Folder to Find",,,e,300,300),2,||);
the forth argument is suppose to show only the folders yet it is showing me whatever files I have as well ?
by MonkeyButt
29 Dec 2023 04:50
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

Turn on Menu - Scripting - [x] Syntax Checking You see garbage (and not the content of the array) because the implode() line is missing the trailing semicolon^^ Apart from that the whole script doesn't make sense - Looping over a single item ( $askusr does only contain (at max) one) - If there are ...
by MonkeyButt
28 Dec 2023 03:31
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

I think I may know where the problem lies; although I do have another question the native variable <allitems> returns all the sub-folders for a selected folder in my case, except; how can I get just the folder omitting the path ?
by MonkeyButt
27 Dec 2023 21:25
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

Maybe, just maybe... You read up the syntax of implode() ? The second parameter is the variable name of the list to map the array to. Does it make sense to use $i (the iterator) here?... Why is "||" used as the separator, you aren't even assigning $gPath to the array but a single folder n...
by MonkeyButt
27 Dec 2023 17:15
Forum: Script Exchange
Topic: Append variable to an array ?
Replies: 38
Views: 3125020

Re: Append variable to an array ?

You asked for the whole script, as to what may be wrong ?