March 20, 201312 yr From a project file created under Windows OS, is it possible to script the creation of a folder in the desktop of a Mac once it is run under Mac OSX?
March 21, 201312 yr Author No takers? This "impossbility" is another example of how little FMI cares about WIndows OS users. But the iPad thrill will pass and then...
March 21, 201312 yr Also, we do not allow platform wars. So, either modify your post, or I will do it for you.
March 21, 201312 yr Here is a little script I wrote to make new folders on a user's desktop. It gets the folder name as a script parameter, but you could probably pass a full path instead. I had to edit the AppleScript step using a Mac, and the VB Script 'Send Event' step in Windows, but once those are setup the rest is pretty easy. Make Folder on Desktop (param folderName - AppleScript, VB Script) ---- #This creates, but does not overwrite a folder. Tested on Win XP and Mac 10.6 using FM 11. Set Variable [ $FolderName; Value:GetValue ( Get ( ScriptParameter ) ; 1 ) ] If [ $FolderName = "" ] Exit Script [ Result: "Error - Empty folder name so no folder created." ] ElseIf[Abs(Get(SystemPlatform))=1 //Mac] Set Variable [ $FolderScript; Value:"tell application "Finder"¶try¶" & "make new folder at desktop with properties {name:"" & $FolderName & ""}¶end try¶end tell" ] Perform AppleScript [ Calculated AppleScript: $FolderScript ] Else #Drop the first slash and change forward slash to backslash in the Windows desktop path. Set Variable [ $FolderPath; Value:Substitute ( Right ( Get ( DesktopPath ) ; Length ( Get ( DesktopPath ) ) - 1 ) ; "/" ; "" ) & $FolderName ] Send Event [ open document; "cmd /c md "" & $FolderPath & """ // Quotes around the folder path allow spaces in the path.; Application Name: “<unknown>” ] #Commit step was added to fix a problem adding the first file into a folder failed because folder is not quite ready? Commit Records/Requests End If
March 21, 201312 yr Just to clarify, you're using only command line syntax on Windows, not a VBscript. And rightfully so, the command line is extremely powerful for these kinds of things.
March 22, 201312 yr What I would do is simple. When booted in Windows, email yourself the file. Boot in Mac, retrieve your email and save the attachment wherever you want. This could even be scripted. Edit. Well, some of it.
Create an account or sign in to comment