Yes, I see that I had needless stuff in the loop; I was cobbling this up from an earlier script. And I never knew about BREAK with the ForEach.
Your script works great. Thanks for the instant help.
Search found 31 matches
- 09 Jan 2021 02:32
- Forum: Tips & Tricks, Questions & Answers
- Topic: Need help with passing ffmpeg command line
- Replies: 2
- Views: 61
- 09 Jan 2021 01:50
- Forum: Tips & Tricks, Questions & Answers
- Topic: Need help with passing ffmpeg command line
- Replies: 2
- Views: 61
Need help with passing ffmpeg command line
I'm trying to use ffmpeg in a script to extract subtitles from videos. The following works fine in a command prompt: ffmpeg -i video.mp4 subtitle.srt Here video.mp4 is the video file name, and subtitle.srt is the output subtitle file name. My script is built on this. It expects the video files to ha...
- 04 Oct 2020 07:36
- Forum: Bug Reports
- Topic: "Do not ask again" on access denied doesn't remember
- Replies: 2
- Views: 141
Re: "Do not ask again" on access denied doesn't remember
Yes, it tries to rename each folder, but only one folder was locked.
However, now it's not repeating. In fact whether or not I enable the checkbox it doesn't ask again! So - if not repeatable, and not very important anyway - not worth chasing.
Thanks
However, now it's not repeating. In fact whether or not I enable the checkbox it doesn't ask again! So - if not repeatable, and not very important anyway - not worth chasing.
Thanks
- 03 Oct 2020 01:23
- Forum: Bug Reports
- Topic: "Do not ask again" on access denied doesn't remember
- Replies: 2
- Views: 141
"Do not ask again" on access denied doesn't remember
This is with v21.10.031. I forgot that I was downloading into a folder and ran a script that renames folders, including this one. The script popped an XY "Access denied" window. This had a checkbox for "Don't ask again during this renaming operation". I enabled the checkbox and clicked "OK" to keep ...
- 22 Aug 2020 06:49
- Forum: Script Exchange
- Topic: Move all to parent & delete - my most-used script
- Replies: 0
- Views: 1128
Move all to parent & delete - my most-used script
I have many very useful scripts but this has probably been used 10x any other, so worth sharing. All it does is move everything from the current List folder to the parent of that folder, then delete the now-empty current folder. Yes that's simple and I know it can be better programmed, but this has ...
- 22 Aug 2020 06:35
- Forum: Bug Reports
- Topic: '?' only honored once in a loop
- Replies: 1
- Views: 115
'?' only honored once in a loop
Seems like a bug... The script stopper '?' is only honored the first time through a loop. while ($i < 5) { $i++; ? $b=0; } This stops the first time through, popping the script debug window; but not again on following passes. Seems like it should stop every time, which is the action I was looking for.
- 22 Aug 2020 05:37
- Forum: Wishes
- Topic: Add Move/Copy Tab to Other pane on tab context menu.
- Replies: 7
- Views: 614
Re: Add Move/Copy Tab to Other pane on tab context menu.
+1 Been meaning to ask for "Copy Pane". Move pane can be done by drag & drop now... maybe I missed something along the way.
- 10 Aug 2020 07:00
- Forum: Tips & Tricks, Questions & Answers
- Topic: Add "wait" to let Status Bar update
- Replies: 3
- Views: 243
Re: Add "wait" to let Status Bar update
I suggested adding a note to the Help for SC Status (to precede it with e.g. a "Wait 1;" command). But that's really a workaround. Maybe even better would be to code SC Status itself to give the OS that 1 millisecond to catch up. Again, I've had this happen a number of times and never had a clue wha...
- 10 Aug 2020 06:52
- Forum: Bug Reports
- Topic: Locked tab can be mis-located
- Replies: 3
- Views: 221
Locked tab can be mis-located
This is with XY 20.90.0804 "fresh;"; Win 10 x64. In the list pane I Ctrl-L "lock" a tab e.g. " C:\temp ". Then right-click on the upper left corner of the tab - this gives the options of "This PC" and some recent folders. If I select "This PC" the tab will sometimes switch to " This PC ", in other w...
- 04 Aug 2020 20:22
- Forum: Tips & Tricks, Questions & Answers
- Topic: Add "wait" to let Status Bar update
- Replies: 3
- Views: 243
Re: Add "wait" to let Status Bar update
My videos take about 10 sec each to verify. I didn't want to spend more time experimenting on sets of them, and the 0.1 sec additional per file doesn't matter in this case. I suggest adding a tip on this subject to the Help on SC 'status'. (I can't now find the thread for Help improvement suggestion...
- 04 Aug 2020 05:46
- Forum: Tips & Tricks, Questions & Answers
- Topic: Add "wait" to let Status Bar update
- Replies: 3
- Views: 243
Add "wait" to let Status Bar update
Working on a script that steps through video files and calls ffmpeg to check some characteristics of each. I have a "status" command to show the current video filename in the Status Bar. However, after several videos this status display would freeze, even though the script continued to work through ...
- 27 Jul 2020 05:38
- Forum: Wishes
- Topic: Live Filter Box - even more useful
- Replies: 3
- Views: 461
Re: Live Filter Box - even more useful
+1. It absolutely needs it.
- 16 Jun 2020 00:06
- Forum: Tips & Tricks, Questions & Answers
- Topic: To sort audio lengths use "Property" not "Special Property"
- Replies: 3
- Views: 330
Re: To sort audio lengths use "Property" not "Special Property"
Wait, more info... seems like the issue with Special Properties | Length only happens at folder changes within Branch View, and not always then. The first clip below shows the problem, using a Special Properties | Length column. The second clip shows the regular Properties | Length results. (Note th...
- 15 Jun 2020 23:39
- Forum: Tips & Tricks, Questions & Answers
- Topic: To sort audio lengths use "Property" not "Special Property"
- Replies: 3
- Views: 330
Re: To sort audio lengths use "Property" not "Special Property"
On MP3 tracks with playtimes between 1 and 6 minutes.
- 15 Jun 2020 21:16
- Forum: Tips & Tricks, Questions & Answers
- Topic: To sort audio lengths use "Property" not "Special Property"
- Replies: 3
- Views: 330
To sort audio lengths use "Property" not "Special Property"
I have a bunch of MP3 files in a folder. In that list pane I right-click on the column bar and select "Add Column". That creates a new one called "Undefined". Then via right-click I can assign it using either "Select Property" or "Select Special Property". If I choose "Select Special Property | Leng...