Sign in to follow this  
Followers 0

Creating new folder via applescript

3 posts in this topic

I need some applescript help. I know nothing of Applescript and it is really hard to find tutorials... I'm not looking in the right place.

Does anyone have an apple script that would take a value from my database and simply create a new folder?

In my record I have the file path in one field, and the name of the new folder in another field.

I want to execute an applescript to create a new folder at the end of that path. It is on a networked volume (not on workstation running databse). Gosh, any help you can give me would be so appreciated. Also, if you have any links to good training for applescript that'd be great too... I might have to go get applescript for dummies and actually read the book.... so 1980! :)

Thanks again for any help you can offer.


Share this post

Link to post
Share on other sites


Have you considered using ScriptMaster's Create Folder module?


Share this post

Link to post
Share on other sites

See if this helps:

Share this post

Link to post
Share on other sites

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
Sign in to follow this  
Followers 0

  • Similar Content

    • By Franco Pagano
      fmp 14 last release.
      i put this applescript in a global field  and also all the fmp field are global.
      i don't understand  wy it doesn't work, if the applescript var are set as ... "set ServerDisk to "afp://" ... it work.
      Were i am wrong?
      Many thanks.

          set ServerDisk to field ("ServerDisk_as" as text) of table ("__AS" as text)
          set ServerFolder to field ("ServerFolder_as" as text) of table ("__AS" as text)
          set VarAccount to field ("VarAccount" as text) of table ("__AS" as text)
          set VarPw to field ("VarPassWord" as text) of table ("__AS" as text)
      tell application "Finder"
          display dialog ServerFolder
          if not (disk ServerDisk exists) then
              mount volume ServerFolder as text as user name VarAccount with password VarPw
          end if
      end tell
    • By Simon Brown
      bBox is a FileMaker plug-in providing easy integration with shell, AppleScript, Python, and Ruby scripts. Freely available with a comprehensive demo file.
      This version adds the following:
      bBox_PythonEvaluate function for quick call-backs from FileMaker "no wait" mode for Bash, Curl, and sort functions function descriptions (FileMaker 15 only) now with over 160 examples in demo file Requires FileMaker 12 or higher and Mac OS 10.7 or higher. The majority of its 34 functions are server-side and CWP compatible.
      Details and download at:   
    • By iiiryan
      Hi all, running into an issue with Quicklook on Yosemite.  When we run this script:
      It causes Filemaker to open two instances of qlmanage, wait a while, then crash.
      I've heard there are difficulties getting Quicklook to behave in Filemaker on Yosemite, so I began exploring other options.
      I am aware of how to open a container file automatically using the computer's default settings for the file, but I  was wondering if someone could help me understand how to open the contents of a container with Preview for OSX.
      Thanks for any insight you can give!
    • By wedgeman
      Running on Mac OS, and need this script to move come files (.jpgs) out of a particular calculated folder/filename sequence.
      I've got this working in a separate applescript (to install said jpg files), but it's built slightly differently.
      The issue I'm getting is this: it errors out, and I get "Expected expression but found uknown token."...
      Not really sure what's causing this, but I suspect it's my escape marks that are not setup properly....
      could any kind soul look at this and give me a little feedback?
      Here's the calculated AppleScript:
      "set myShCMD to \\\"mv /Volume/FOLDERNAME/FOLDERNAME/ \\\" & CALCULATEDFILENAME & " \".jpg /Volumes/FOLDER2/FOLDER2/\\\"" & ¶ &
      "myMountAFPVol()"  & ¶ &
      "do shell script myShCMD"  & ¶ &
      "myUmountAFPVol()"  & ¶ &
      "on myMountAFPVol()"  & ¶ &
      "            tell application \"Finder\""  & ¶ &
      "                        mount volume \"afp://IPADDRESS/FOLDERNAME\" as user name \"LOGINID\" with password \"MYPASSWORD\""  & ¶ &
      "            end tell"  & ¶ &
      "end myMountAFPVol"  & ¶ &
      "on myUmountAFPVol()"  & ¶ &
      "            tell application \"Finder\""  & ¶ &
      "                        eject \"MOUNT\""  & ¶ &
      "            end tell"  & ¶ &
      "end myUmountAFPVol" & ¶
      BTW, this is running in Server 9.0v3, though i'm rather doubtful that matters(?)....
    • By Nuos
      I am trying to get FileMaker to extract the content of the inbox in mail.  The code works on my computer but on my clients it has an issue.  The code sets cell "g_Email_Inbox" and when I query that cell from applescript it returns its contents but within FileMaker on my client's machine NaDa.  It displays as empty and any scripts within filemaker see the field as empty.  I have attached the script for your use.  Both new up to date machines. Client is running FM13 while I'm on 14.  I will confirm that is not the issue but I suspect it is not.
      Really need so thoughts on this ... Im stumped
      Mail GetMessages.scpt