Page 2 of 2

Re: [Scripting help] Open file / target shortcut

Posted: 16 Jan 2022 19:50
by kotlmg
i got the answer. thanks.

Code: Select all

"foxit..."
    $gfts  = "|" . replace(get("genericfiletype", "pdf", "|"), "*.") . "|";
    $items = "";
    foreach($item, <get SelectedItemsPathNames |>) {
        if (exists($item) != 1) { continue; }
        $shortcut = property("#ShortcutTarget", $item);
        if ($shortcut) { $item = $shortcut; }
        if (strpos($gfts, "|" . gpc($item, "ext") . "|") == -1) { continue; }
        $items .= quote($item) . " ";
    }
    if ($items) { open """C:\Foxit PhantomPDF editor 5210201\Foxit PhantomPDF.exe"" $items"; }

Re: [Scripting help] Open file / target shortcut

Posted: 16 Jan 2022 19:59
by highend
What?

Code: Select all

get("genericfiletype", "pdf", "|")
There is no generic file type pdf, totally useless comparison...