I just need a script to rename files but accept more than one input for the name. Here's what I have but it's not working.
Code: Select all
$name = input("Filename", "File Name", "NoName"); $type = input("File Type", "Social, Other, etc.", "Social"); renameitem("<date mm-dd-yy>_$type_$name");Bonus points if you can make it create a variable from the last word of a directory, 2 or 3 directories up, depending on whether that directory is a number.20-04-22_$type_Test
ie. (THIS IS NOT CODE, just meant to help explain)
if ../../dir name != int:
$dirname = ../../dir name
$split_dirname = name
$filetype = name
else if ../../dir name == int:
$dirname = ../../../dir name
$split_dirname = name
$filetype = name
If only this was coded in Python! I could make that work....
Thank you for your help!
XYplorer Beta Club