[Scripting help] Open file / target shortcut

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
kotlmg
Posts: 298
Joined: 30 Jun 2010 17:14

Re: [Scripting help] Open file / target shortcut

Post 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"; }

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: [Scripting help] Open file / target shortcut

Post by highend »

What?

Code: Select all

get("genericfiletype", "pdf", "|")
There is no generic file type pdf, totally useless comparison...
One of my scripts helped you out? Please donate via Paypal

Post Reply