Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4265 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted
 

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

 

 

Posted

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.

Posted

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.

This topic is 4265 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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