Jump to content

Insert File Reference using variable to specify path


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

Recommended Posts

The following conundrum is (currently) OS X specific and I'm using Troi File plugin in the script.

I want to create a new record in a table "Documents" for each file (any type) in a target folder. In each of those new records I'd like to create a file reference that pertains to the file. To accomplish this I'm trying to pass the file path to the "Insert File" step via a script variable called $$filepath.

The problem is that I keep getting the message that the file cannot be found. This is driving me nuts because when I view the variable $$filepath, it shows the exact file path.

Aaaaarrgh!!!! Can somebody please help me out here? :bang:

Sample attached.

Link to comment
Share on other sites

Never mind...I figured it out myself.

I was using a file path formatted as "DriveA:users:me:folder:file.ext".

I changed the format to "filemac:/DriveA/users/me/folder/file.ext"

and now it works! :beertime:

Link to comment
Share on other sites

This topic is 5763 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
 Share

×
×
  • Create New...

Important Information

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