public static IScriptCommand FileList_Open_For_DiskBased_Items =
        //Assign Selection
        UIScriptCommands.FileListAssignSelection("{Selection}",  
     //If Selection.Length = 1
     ScriptCommands.IfArrayLength(ComparsionOperator.Equals, "{Selection}", 1,    
        //FirstSelected = Selection[0]
        ScriptCommands.AssignArrayItem("{Selection}", 0, "{FirstSelected}",  
        //FirstSelected.IsDirectory? 
        ScriptCommands.IfPropertyIsTrue("{FirstSelected}", "IsDirectory", 
        //True -> Broadcast ChangeDirectory using {Events}
        UIScriptCommands.NotifyDirectoryChanged("{Selection}"),  
        //False -> DiskRun
        IOScriptCommands.DiskRun("{FirstSelected}") 
                )
        )));

Last edited Aug 8, 2014 at 6:16 AM by lycj, version 4

Comments

No comments yet.