Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

  • 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...

This forum is not operated by FMI.

Also, we do not allow platform wars. So, either modify your post, or I will do it for you.

 

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

 

 

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.

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.