AnsweredAssumed Answered

Syntax translation

Question asked by tays01s on Feb 29, 2016
Latest reply on Feb 29, 2016 by tays01s

I need to understand the following syntax in order to manipulate it. Is there short 'duffers guide' out there?

 

 

If [ Abs( Get( SystemPlatform )) -1 /*Windows*/ ]

Set Variable [ $folderPath; Value:Substitute ( "/" & $path; ["//"; ""]; ["/"; "\\"]) ]

Send Event [ open document; "cmd.exe /C MKDIR " & Quote( $folderPath & $folder & "/" & $subfolder & "\\"); Application Name: “<unknown>” ]
[ Wait for completion ]

Set Variable [ $errorFolder; Value:Get( LastError) ]

Else

#Create on Mac

Perform AppleScript [ Calculated AppleScript: "set theOutputFolderPath to path to " & "desktop" & " folder" & ¶ & "set theNewFolderName to " & Quote( $folder) & ¶ &
"tell application \"Finder\" " &¶ &
"if (exists folder (theOutputFolderPath & theNewFolderName as string)) = false then make new folder at theOutputFolderPath with properties {name:theNewFolderName} " & ¶ & "end tell" ]

End If

 

Outcomes