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.

Applescript to create folder on HDD

Featured Replies

Hello,

I'm running FMS9 on OSX-Server 10.5

I have a script that uses an apple-script to create a folder on the server HDD to store client information like PDF's, emails etc. On creating a new client, a folder is made with the client name and number.

Previously I ran FMS9 on a stand-alone PC (non-server) and I could just list "macintosh HD:rootname:". When switching to OSX Server I ofcourse had to place these in the "Users:Servername:Public" folder to be accessible to other computers.

My question is, what is the path to this folder? I've tried "Macintosh HD:Users:Servername:Public:" but I get an error that this folder can not be accessed.

Thanks in advance!!!

Edited by Guest

  • Author

Grrr..

Just leave out the "of disk macintosh HD" in the applescript and point directly to the server name instead of "Users:Servername:"

Life can be so simple somtimes....

Edited by Guest

You should avoid use your FileMaker Server as a file server in this fashion. And especially avoid enabling OS level file sharing to access these folders.

Steven

  • 1 month later...
  • Author

Still no luck. I've tried local paths and remote paths, but nothing let's me make files.

ServerName:Public:MyFolder:

Macintosh HD:Shared Items:Public:MyFolder:

I'm no longer using the "of disk.." in the applescript. Why is it so hard to find the path to a folder???

========================

The problem was not the finding of the path like the error message kept saying, but it had no write privilledge. Why the message says the folder can not be found when it does find it, but just can't write to it, is a mystery to me...

It's working now with ServerName:Public:MyFolder

Edited by Guest

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.