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

Exporting using variable filename and get(desktopPath)


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

Recommended Posts

Posted (edited)

I have a script that sets a variable $Filename Value: Get(DesktopPath) & "xxxfilename"

When I export data with the output file path as $Filename it works fine on a Mac but returns an error on a PC (XP Pro) saying:

"xxxfilename" could not be created on this disk. Use a different name, make more room on the disk, unlock it or use a different disk"

When I export the file as normal it creates the file on the disk as expected.

I am not hung up on using the desktop as the save location. Essentially I want to save a file with a variable filename and then attach it as an email that will work under any OS.

Help would be greatly appreciated.

Edited by Guest
Posted

IIRC, you must begin the path with "filewin:/".

Strictly speaking, you should begin the path with either "filewin:/" or "filemac:/", according to the current platform, but as you have discovered, the OS X version is more forgiving.

This topic is 5855 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.