Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Good, however, when I tested with the \"s, the output files got quotes in the filenames as in "myfile"-1.pdf. Commented Jan 19, 2023 at 17:07
  • @ki9 hmm. The thing is without the quotes, it will almost certainly break if you try it on a file whose name contains spaces. I don't know exactly how it should be quoted without trying, but some quoting in the basename command will be needed. I'll remove them now, but if you try with a file named something like foo bar.pdf, let me know how it goes! Commented Jan 19, 2023 at 17:17
  • I did test it on a file with spaces and it does work as you have it now, creating files like foo bar-1.pdf. Like I said, I guess thunar is already treating %n like a single parameter as if it were already "%n". Commented Jan 19, 2023 at 17:25
  • @ki9 OK, great. You must be right and it is passing the %n quoted. I thought the %n was used and expanded by pdfseparate but if it isn't, then great! Commented Jan 19, 2023 at 17:27