I placed it in scripts, selected it in the menu(it turned orange). I then in the preview mode with the video I wanted renamed clicked the shutter (in capture mode). the suffix has not changed in the menu.
Code: [Select]--[[@title renaming]]new_suffix = "jpg"file = file_browser("A/DCIM")file_new = string.sub(file, 1, (string.len(file)-3)) .. new_suffixprint("new:", file_new)os.rename(file, file_new)A year ago I was gifted the above script to rename a video file as jpeg so that with my Classic Eye-fi card I could send it as jpeg to my computer via Wi-Fi. It worked.But I lost it in reformatting and think I am re-installing it/using it incorrectly.I copied it to Notepad and saved it as videorename.lua. I placed it in scripts, selected it in the menu(it turned orange). I then in the preview mode with the video I wanted renamed clicked the shutter (in capture mode). the suffix has not changed in the menu.
--[[@title renaming]]new_suffix = "jpg"file = file_browser("A/DCIM")file_new = string.sub(file, 1, (string.len(file)-3)) .. new_suffixprint("new:", file_new)os.rename(file, file_new)
When I saved the script, it saved in lower case and has a .~ after the name.
To select the script file I pushed the right side of the function wheel; the file name turned orange. I turned alt off, then on to get a clear screen.
When I click the shutter, at the bottom left of the screen is***STARTED******FINISHED***renamingrenaming In the top left in red appears to be uBASIC:1: Urik slnt(Not sure of characters)
I realize you expertise is chdk not eye-fi.
Started by kdeal Feature Requests
Started by dragra General Help and Assistance on using CHDK stable releases
Started by davecool RAW Shooting and Processing
Started by redfordl22 General Help and Assistance on using CHDK stable releases
Started by Elbourne Script Writing