ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Shortcuts Creator

<< < (3/5) > >>

nkormanik:
One additional little feature you could add would be a button to "Select All" -- instead of user having to click in every single box.

Say, if user imports a text file of 200 lines, so that 200 check boxes would need to be manually clicked on.

Better to have a "Select All" or "Check All" button.

Maybe a "Check None" as well.

skwire:
There are check/uncheck buttons in the toolbar that should do what you want.
 :D

skwire:
Seems, in answer to my original request, that using plain wild cards alone will do the trick using your program.  User just needs to create a text file containing the snippets one per line.  And import that text file into File Punter.  Press start.
-nkormanik (June 16, 2012, 05:05 PM)
--- End quote ---
Say, if user imports a text file of 200 lines, so that 200 check boxes would need to be manually clicked on.
-nkormanik (June 16, 2012, 05:15 PM)
--- End quote ---

Hmmm...are you creating 200 separate rules for your use?  If so, maybe we can help out with a RegEx that will do what you need?  Did the RegEx I provided earlier work for you?

nkormanik:
I haven't created the actual files yet.  Was planning ahead.  Figuring that, of course, it would take any programmer a week or so to come up with something.  That is, if they could at all.

I didn't figure on Skwire completing the task in a few hours....

However, I do have a list of the files that should result.  Here is a partial list:

50501_20104_21901.png
50501_20104_21902.png
50501_20104_21903.png
50501_20104_22001.png
50501_20104_22002.png
50501_20104_22003.png
50501_20104_22004.png
50501_20104_22005.png
50501_20104_22006.png
50501_20104_22101.png
50501_20104_22102.png
50501_20104_22103.png

There will be 16,110 of these image files.  Let's assume that all these image files are held in the folder:

c:\contour plot images\

Pairing up the second and third sections of each file name -- these two variables are the x and y in a contour plot.

The first section of the file name, 50501 here, is the z variable in the contour plot.

It's the second and third sections of each file name that I want to focus on in providing shortcuts.

There are a total of 180 variables in the second and third name-section combinations.

So the task, for instance, if 20104 is mentioned in the filename, create subdirectory 20104, and make a shortcut in that folder to the image file which contains its name:

c:\contour plot shortcuts\20104\50501_20104_21901.png.lnk  (i.e., a shortcut)
etc.

In the 21901 folder will appear the exact same shortcut, because 21901 is mentioned in the filename:

c:\contour plot shortcuts\21901\50501_20104_21901.png.lnk  (i.e., a shortcut)
etc.

There will be 180 shortcut folders.  And 180 shortcuts in each folder.  (Maybe 179, actually.)

Using File Punter..., 180 lines of commands, one for each of the variables.

c:\contour plot images\     *20104*     c:\contour plot shortcuts\20104     No     No
c:\contour plot images\     *21901*     c:\contour plot shortcuts\21901     No     No
etc.

Pretty straight forward.

Only issue will be getting tabs between the component parts of the commands in the text file which will be imported by File Punter.  I'm assuming that tabs as delimiters are indeed needed (as opposed to spaces).  Please mention if that's not the case.  I think it would have to be, because of spaces being in the file path.  Hmmm.  What's the easiest way to get tabs between the component parts?


skwire:
Using File Punter..., 180 lines of commands, one for each of the variables.-nkormanik (June 16, 2012, 11:55 PM)
--- End quote ---

No need for 180 rules; you can do this in two rules using Regular Expressions.  Follow the same instructions as in my previous post but change the patterns to the following:

First rule pattern:       .*_(.*)_
Second rule pattern:   .*_(.*)\.

Those two rules should accomplish what you want.  =]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version