Re: Open PDF via "run service"
Reply #3 – 2023-07-04 08:46:28
That worked for years and sometimes stopped to work... Does the console output provide any clues? Menu > View > Console might provide a view of the command being sent to the operating system and any error messages resulting.What I want to archive is open the pdf in the music directory with a keystroke. Yes, but how? I guess I'll have to work it out for myself (thanks)... So you are triggering an event on (eg) %path% = <some path>\<some music file>.mp3 and expect to open <some path>\<any name>.pdf? I gather from that the $replace is supposed to extract <some path> from %path%. As per:People always forget $directory_path():"C:\Program Files\Irfanview\i_view32.exe" "$directory_path(%path%)\*01.jpg" ...there is a text function specifically for extracting the directory from %path%. From the wiki page for Title Formatting:$directory_path(path) Extracts directory path from the file path. (For "file" read "string") So instead of your"C:\Program Files\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "$replace(%_path%,%_filename_ext%,)*.pdf" try "C:\Program Files\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" "$directory_path(%path%)\*.pdf" ...and if that doesn't work try it with "*.pdf" instead of "\*.pdf". I suspect if your original version stopped working then this won't work either, I don't think we've got to the bottom of the cause. It could be something to do with drive handling: is your music now on a different drive than C: or perhaps you've moved FB2K?