topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 26, 2024, 12:24 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - magician62 [ switch to compact view ]

Pages: prev1 [2] 3 4 5 6 7 8next
26
Post New Requests Here / Re: IDEA: Subfolder Creator
« on: April 16, 2019, 01:14 AM »
Unfortunately sometimes the download misses one or takes two copies. And to make things worse, the page code is broken. If you go one direction you get the numbers generally in random ascending order, but if you miss one and have to go back, the filename is different, or better put, the same as another page! 

27
Post New Requests Here / Re: IDEA: Subfolder Creator
« on: April 14, 2019, 06:50 AM »
Thank you for the answers and suggestions to improve. As I say a lot to learn. Although I played with php about 10, I have probably forgotten most of it, prior to that it was BASIC almost 40 years ago lol.

The nice thing is I use this process in various different cases so can adjust and re-use as needed.

At present it is for downloaded newspaper pages, where they may not be sequentially named. So dropping into the right folder allows for a subsequent quick rename using the folder as the new filename. Only 150 years of a weekly papers to work through. :)

28
Post New Requests Here / Re: IDEA: Subfolder Creator
« on: April 14, 2019, 02:50 AM »
I like your use of "quickly ". It is a relative term, and the closer you get to retirement, the longer "quickly" takes. :)

From what you have there I can see how the GUI is created. In my working version I have moved the box creation to the top which seems to work, but is there a reason not to do this? To me the logical progression is make a box, chose pen and ink, and write something with it. :)

I created a gosub for folder creation and dropped it to the bottom with the appropriate entries for folder creation.

The bit I had trouble with is a loop for a group of folders dropped. I took a while before I realised that your "Break" might be stopping a Loop through all the folders dropped  So tried substituting the gosub for the Break, and all seems to work!

Code: Autohotkey [Select]
  1. Gui, Show, w300 h300, Subfolder Creator
  2. Gui, font, s14 cBlack bold
  3. Gui, Add, Text, x150 y150, Drop folder
  4.  
  5. return
  6.  
  7. GuiDropFiles:
  8.  Loop, parse, A_GuiControlEvent, `n, `r
  9.   {
  10.     folder := A_LoopField
  11.     gosub,create_folder
  12.   }
  13.  
  14. return
  15.  
  16.  
  17.  
  18. create_folder:
  19.  if !InStr(FileExist(folder), "D")
  20.     return
  21.    FileCreateDir, %folder%\p01
  22.    FileCreateDir, %folder%\p02
  23.    FileCreateDir, %folder%\p03
  24.    FileCreateDir, %folder%\p04
  25.    FileCreateDir, %folder%\p05
  26.    FileCreateDir, %folder%\p06
  27.    FileCreateDir, %folder%\p07
  28.    FileCreateDir, %folder%\p08
  29.    FileCreateDir, %folder%\p09
  30.    FileCreateDir, %folder%\p10
  31.    FileCreateDir, %folder%\p11
  32.    FileCreateDir, %folder%\p12
  33. return

29
Post New Requests Here / Re: IDEA: Subfolder Creator
« on: April 13, 2019, 02:45 PM »
You have it correct
  :up:

Although I have looked at AHK in the past only bits of it made sense. I still have a long, long way to go. :)

30
Post New Requests Here / IDEA: Subfolder Creator
« on: April 13, 2019, 12:49 PM »
Ideally AHK so I can learn.

A dropzone where one or more folders can be dropped from various source locations.

Dropzone creates one or more empty folders of user defined name(s) inside dropped folder(s).

Sounds simple, but is it?

Purpose is to allow pre-population of folder sets for subsequent use.

TIA

31
Post New Requests Here / Re: How old is this file?
« on: December 29, 2018, 05:07 AM »
I tend to just properties a file to get a date. as I do the age bit in my head, and rarely care about Hours and Minutes

I can't code anything, but can prompt a couple of questions that may arise.

The important thing is how are you determining the age of the file?

Days since created?
Days since modified?

Date created is NOT always the older of the two? File copied form another location for example.


32
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: December 26, 2018, 01:41 AM »
OK, I believe I have identified part of the issue why it wasn't working as expected.

After using the suffix format "_Species_Name" I found it became cluttered, so tweaked it to _(Species_Names) which improved readability.
I also used the same technique to append the Location before the species name using "_(Location). Again it worked well, but didn't provide enough separation from "_Species_Name" so I decided to change the type of brackets fro Curved () to Square [], and that is when it all went wrong!

It looks like you can have a multitude of curved brackets, but as soon as you add a square bracket, no further additions will work!

Valid
_(Species_Names) _(Species_Names) _(Species_Names) _(Species_Names)
_(Species_Names)_[Location]
_[Location]

Not Valid
_[Location]_(Species_Names)
_[Location]_[Location]

Obviously, you wouldn't have two locations, but it does illustrate the issue of bracket type, thus limiting the methods usefulness

Also You can use Curly bracket {} but I can't tell the difference between curved. You can not use greater or less than <> either.

I assume this is down to the way Powershell works?

Maybe an AHK driven interface is the way to go in the long run, to make the whole thing faster and easier to configure for different uses using "profiles". Unfortunately I lack those skills


33
Is the machine set to shut down or hybrid hibernate which is the default on W10. If the latter it's not something like  a Wake on LAN or Wake on USB?

34
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: December 23, 2018, 04:20 AM »
Well it worked for a while.

Big issue was the number of files/speed.

When I had more than 1000 files it was far quicker to use alternative renaming utils, due to needing to submit 4 batches or more, but alternative methods did put at risk consistency.

Changing the shortcut as the appended name part evolved, was quite tedious, with over 200 different choices.

Over recent days, many of the shortcuts have failed to work, though they look identical format when propertied. My initial thought was use of () or{} brackets, but even [] which I had originally used has become an issue  Windows 10 is preparing for the fall up[date, I wonder if it has messed with this method.

I did use KodeZwerg's Shortcut Tuner  to tweak the Targets, maybe that has had an impact on this type of link.

Though even starting from scratch seems to have a problem, check it is not the AV. SO in effect back to square 1 :(





35
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 06, 2018, 02:07 AM »
Windows has a command line length limit.

Dropping too many files on it at once can exceed that limit.

But seems weird that it disallows then allows the same number.

Not sure whether Windows will break it into multiple commands.


This is what I was finding weird. I had expected I could drop the number to a point which would give me a clue. But to then accept greater numbers made little sense. The only thing I could think of was something interrupted the process. I will just have to make sure I don't try and rename too big a group :)

Accepted, it's not a perfect solution, but it has proven the concept works, and although it can be quite slow on larger batches. I would say having all the species in one screen does allow for a general increase in speed and easier processing.

The biggest time consumer is creating the shortcuts and setting icons.

I got the shortcut creation time down  creating a text list of all the species, prefixing with underscore and replacing spaces with underscore. Then prefixing the whole lot with the command. I then duplicated the shortcut 150 times renamed to species and finally properties to change the command inside.

I still have to finish the icon side :)

The concept will work for just about anything I want to add.

I also suffix with location, so have used the same technique for that too. Saves having to open a renaming program and select to create a rule for the change.

I can see a full fledged drag drop with creation from a data list would benefit those who predominantly use a mouse. 

All i need to do now is figure the best way of handling which camera in the filename. :)

36
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 05, 2018, 12:26 PM »
Have encountered an occasional issue with larger batches.

Though have not been able to narrow down. The number of files it will process seems to vary I started at 1000 error. Stepped down to around 300 error, then dropped close to above 255, worked Went back to 400, worked.
All filenames are of the same length.

Now it gets weird. The time taken for similar size batches is varying quite wildly, so something else must be going on.

37
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 05, 2018, 11:48 AM »
Files have no need to move. Rename is in same location.

The code used is
# DND-Rename.ps1
for ($i = 1; $i -lt $args.Count; $i++) {
Move-Item $args[$i] ($args[$i] -replace "(\.[^.]+$)", "$($args[0])`$1")
}

38
Post New Requests Here / Re: IDEA: Automagic Digital Photo Manager
« on: November 05, 2018, 07:30 AM »
A little observation, as I need to look further at this util. I work always in GMT for photograph times, but I suspect not all cameras do. :)

39
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 05, 2018, 07:25 AM »
I was using "move". :)

The irony on Icons was i have several graphics packages, just none allowed me to create icons!

I suspect part of my speed issue is, my system was a W10 upgrade from W7 rather than fresh install. I have occasions where if several large files are sent to my computer from another on the network, I can loose total control till completed. If I pull the same files, I have no problems. The solution is probably a format, but even when I upgraded, I really didn't fancy spending a month or more re-installing and reconfiguring everything to where I had it before. :)

A good way of describing, and it is not just this util. If I drag a number of files from an explorer window to my graphics program, I can not select any file in the source folder till all the files have loaded as I get a busy cursor. File "moves" see explorer processor usage go silly. It's almost as though it has forgotten to multi task. :)

40
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 05, 2018, 01:55 AM »
Try changing the shortcut Target to the following:

[Select]
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoExit -File "E:\Renamer\DnD-Rename.ps1" _Kingfisher

-ExecutionPolicy Bypass will tell Powershell to ignore all security settings and just run the script, (since it's rather simple this should be OK).
-NoExit will keep the console window open so you can read any errors.


That sorted it. :)

Now executes as intended.

A couple of issues I have identified,, which I suspect is a function of how windows now seems to work.

On processing large numbers of files 100+ (each 10-20mb). I am unable to add further files till they are processed, as windows will not allow them to be selected.

Having to create an icon... :)

Due to the way this works, it may not be suited to the original idea because of the delays it creates with larger groups of files, as mentioned that may be windows, but it does work very well for another task I have in mind. :)

41
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 04, 2018, 05:28 PM »
Not an All-in-One solution but just something simple in the meantime.




As best I can tell, I have done as stated but nothing appears to happen. Console window opens and closes, but that seems it. There does seem to be red writing at thee top of the console window, but not possible to read. Is there a way to make it persist?

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File "E:\Renamer\DnD-Rename.ps1" _Kingfisher


42
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 04:06 AM »
* Stephen66515 waves
Waves back. :)

43
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 03:48 AM »
I'm more the maker not the thinker. (even if i thought my idea mirrors request...)
I'm more the creator not the user. (even if standard wheel exists; i like to have my custom ones...)
And finally, if you need to think and rethink (maby due to the way i communicate), i do not harm anyone or want to convince anyone.
Free world for free softwares :-)

Your are in best hands @mouser  :-*
He can better communicate and final product does what he say.

Best wishes!


KodeZwerg.
I have no issue with how you communicate, we all do it differently, if we all did it the same the world would be very plain. If you have ever tried talking to some of the natives in England, even we have trouble understanding them even if born 10 miles down the road!

I think when I have something in my mind, reading anothers take on it can sometimes be harder as you try to see how it fits. Second coffee now taking effect :)

It does look like mouser may have a simple solution to piggyback existing tools, but thank you for your interest.


44
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 03:04 AM »
Once I know how it works, it shouldn't be a problem.

Examples are good especially if regex is involved :)

I use a number of Skwire's utils that use regex and can normally muddle my way through. :)

If it uses regex and has a result preview option, even better. :)


I do have Bulk Rename Utility installed if that helps. :)

45
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 02:56 AM »
Restatement of requirements

A user resizeable interface window which contains a variable number of tiles approximately 150px square.

Each tile should have the ability to allow an image thumbnail in place or overlayed on the tile

When one, or many files are dragged from Windows and "dropped" onto the appropriate tile. A predefined rename function should auto-magically be performed on the file(s)

Ideally this rename function is immediate, or in a running queue, so the original file is updated as soon as resources are available. ( This is to accommodate the possible effect of a renaming large group of files)

Does that make it easier?

46
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 02:48 AM »
To intrude once more lightly into this thread.. A long while ago I wrote a program called Drag and Drop Robot: https://www.donation.../drag-and-drop-robot
That program let you drop files into a window and ran a batch commandline on each.

*IF* you could separate your needs into a gui drag and drop tool, and a commandline renamer, it wouldn't be too hard to take the Drag and Drop Robot Code and make it so there was a grid of drop targets with associated images, and a separate commandline specified for each target.  Dropping files onto a target cell would simply queue that commandline up in the batch queue.

Having said all that, it's still an interesting idea of kodezwerg or someone else wants to make a more dedicated renamer tool..
Interesting. Second coffee has arrived. :)

I will restate the requirement, which might make for an easier to split the functions, and your idea may then work.

47
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 02:27 AM »
After first coffee

I will add the original source location should be from outside the utility, so once I catch up, I can wildcard the originating windows folders and work across a few.. We see about 150 species, but there is no real upper limit.

Just yesterday a little over 1000 images were added to the stack. :)

48
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 03, 2018, 02:21 AM »
If i may stick to my written text and your reply....

you mean the steps where i told about fileoperations and what boxes are doing... you want in fact virtual folders?

i mean....
the "boxes" thing what i mentioned and on screenshot displayed as large icons on right side

those should have some kind of "playlist" (stored locations of added files, just names, no actual files)
and my "execute" button will just rename original files in original folders and add them to selectex box.
opening a box will open something that look, feel and smell like explorer with whatever files you added.

that right?
Sorry, As mentioned in my reply to mouser, I am still digesting what you wrote. :)
It was a bit late last night for thinking too much. :) And I have read through a couple of times, slowly building in my mind a picture of what you propose.

Give ma a chance to down a few coffee, and I will have another read through this morning.

49
Post New Requests Here / Re: IDEA: Drag Drop renamer
« on: November 02, 2018, 06:24 PM »
This is an interesting idea..

Let me try to summarize the idea:
You want to be able to rename a bunch of files that can be categorized as being one of a set of categories, and where the categories are usually visual in nature and so dragging and dropping onto the visual category would be natural.

May I suggest a slightly different way of going at this that would require hugely less coding and take advantage of existing tools:

If you think of the renaming as taking place in two stages:  First organizing your photos in category FOLDERS, and then renaming files inside folders.
Use your favorite file explorer replacement, with folders in thumbnail mode, to organize your photos.  Just create folders for each category and copy or move images into them.
Then stage 2 is renaming files based on what folder they are in.

A file explorer tool seems built well for your desired use and reinventing the wheel for this would be a considerable amount of work...


Still thinking over the KodeZwerg response, but to answer you question.

For myself it is all images, but the idea allowed for use by others

Sorting to folders would mean breaking the existing file structure and necessitating it to be rebuilt later.

It also doesn't accommodate images where there is more than one primary subject, as occasionally happens (I hadn't mentioned this as using suffix, I could just process a second time if needed). 

My current method uses a drag drop renamer where i can drag from various locations sometimes using wildcard view, and drop into the utility, then process. The util does allow multiple instances but there is only so much space available where you can still access the start button. So often limited to 9 or at best 18 options, but that uses up 2 monitors

Using the method you suggest would likely be slower than the existing method after adding back the original structure.

Also working on a starting structure containing over 150K files and potentially 3-10k being added a week, it is growing quite quickly and is already onto a second 2TB drive

50
Post New Requests Here / IDEA: Drag Drop renamer
« on: November 02, 2018, 01:21 PM »
Having looked on the web, I can find noting that fits the bill, so if anyone knows of something that fits the bill, please speak up.

In this modern day, like many, I take photographs, in my case birds. I have in the last year accumulated around 150k pictures, which really could do with better identification. I have already used a number of methods to append the species, but none are overly efficient.
 
My preference is to put the subject species into the filename.

The current filename format before species is
YYYYMMDD_HHMMSS_IMAGENUMBER.jpg or .nef
After species I get
YYYYMMDD_HHMMSS_IMAGENUMBER_Species_Name.jpg

As to the idea, which should work for just about anything or any filetype.

A variable size window, so a variable number of "tiles" can be created, allowing for multi monitor use.

The tile size would be around 150px. square or variable but the same size for all tiles.

Each tile is in effect a drop zone where a single, or multiple selection of images can be dropped and the assigned rename applied.

Ideally the tile should have the ability to overlay a users supplied image using the full tile, keeping aspect ratio and sizing to longest side.

Under the Tile should be the rename criteria, Ideally without Underscores, but could be user defined.

I envisage a user interface where the user would put the rename criteria

In this interface there would be
A row for each tile which would contain The rename criteria and a link to a source image which would be imported and then saved with the program settings to create the thumbnail on the tile.
 
Ideally a selector to indicate substitute spaces which in my case is an underscore, but maybe give the user a box to type what they want
A selector to indicate if the above character should be used to separate the rename criteria from original filename.
An option could also select prepend the original filename for those that would like it
These three could be just added as options to the row above. which would allow different affects for different adjustment is people needed it

The ability to save the rename set, so multiple sets for different purposes could be created.

Ideally the rename process might be some form of queue so that it does not interfere with subsequent drops. This would be most beneficial where a 100 or so images need a rename in one drop
Presumptions:
Files may be from multiple locations, but filenames are unique.
Renamed files will remain in their source folders

I have attached an image that gives an idea of the sort of layout (Borrowed from other software)


Hopefully that explains it :)

Pages: prev1 [2] 3 4 5 6 7 8next