2014-12-07 49 views
1

此自定義定義命令有什麼問題?.mc.menu(午夜指揮官)中的自定義菜單命令

# Resize an image using convert 
+ f \.jpg$ | f \.JPG$ 
R Resize image to fit within 800 pixel bounding square 
    size=800 
    convert "%f" -resize ${size}x${size} "%b-${size}.%x" 

當我按下F2我得到:

Error: No suitable entries found in .mc.menu

回答

1

一些嘗試和錯誤後,我得到了一個結論,那就是我需要的是:在頂部定義

shell_patterns=0 

.mc.menu文件。

下面是一些簡要說明:

"..Pattern is either a shell pattern (i.e., wildcards) or a regular expression according to the global setting configured in the Options/Configuration dialog. This setting can be overridden by adding shell_patterns=0 as the first line of the menu file. A value of 1 forces use of shell patterns, while a value of 0 forces regular expressions instead."