nightdesigns Posted March 15, 2002 Posted March 15, 2002 I'm making progress in my problem, but i'm stuck with another hurdle. I'm trying to insert a picture into a container with the filename based off of a prior field. So here's what i have in script maker Go to Field ["Pci"] Insert Picture ["Field goes here"] Right now if i specify i can only pic one file. I want it to pull the record "pic1" and make it go to fileisherepic1.jpg Ideas?
LiveOak Posted March 15, 2002 Posted March 15, 2002 It can be done with an AppleScript, but a better solution is a FM plug-in. Take a look at the Troi File plug-in at www.troi.com. -bd
nightdesigns Posted March 15, 2002 Author Posted March 15, 2002 quote: Originally posted by LiveOak: It can be done with an AppleScript, but a better solution is a FM plug-in. Take a look at the Troi File plug-in at www.troi.com. -bd Thanks, that worked. It was a little confusing, but they have a good digest just for their plug-ins and i got it figured out.
Newbies jdulant Posted March 20, 2002 Newbies Posted March 20, 2002 I have exactly the same problem. Which is the plug-in that I need to use to solve it? quote: Originally posted by nightdesigns: quote: Originally posted by LiveOak: It can be done with an AppleScript, but a better solution is a FM plug-in. Take a look at the Troi File plug-in at www.troi.com. -bd Thanks, that worked. It was a little confusing, but they have a good digest just for their plug-ins and i got it figured out.
nightdesigns Posted March 20, 2002 Author Posted March 20, 2002 quote: Originally posted by njal: [QB]I have exactly the same problem. Which is the plug-in that I need to use to solve it? I used the Troi File Plug-in 2.2. here is the script i use to execute it, be ware of the placement of the spaces, it can mess ya up a bit. you need a global field of "gErrorCode" which is text. Set Field ["gErrorCode",External("TrFile-ReferenceToClip","-unused|Jdx7701ebay-pics" & Picture #1 & ".JPG")"] then a simple If then If ["gErrorCode = 0"] Paste [select, "Picture 1 Preview"] End If. Repeat for multiple pictures. "Picture #1" and "Picture 1 Preview" are fields of mine. "Picture 1 Preview" is a container for a graphic.
Newbies jdulant Posted March 22, 2002 Newbies Posted March 22, 2002 For some reason the script I am using does not work. I get a $$-1 error in the gErrorCode global field (which is text). I do not know where the mistake is? Any ideas? I will really appreciate them. Set Field ["gErrorCode",External("TrFile-ReferenceToClip","-unused|C:My DocumentsMuseo Larco" & Codigo & ".jpg")"] If ["gErrorCode = 0"] Paste [select, "Multimedia 1"] End If. quote: Originally posted by nightdesigns: quote: Originally posted by njal: [QB]I have exactly the same problem. Which is the plug-in that I need to use to solve it? I used the Troi File Plug-in 2.2. here is the script i use to execute it, be ware of the placement of the spaces, it can mess ya up a bit. you need a global field of "gErrorCode" which is text. Set Field ["gErrorCode",External("TrFile-ReferenceToClip","-unused|Jdx7701ebay-pics" & Picture #1 & ".JPG")"] then a simple If then If ["gErrorCode = 0"] Paste [select, "Picture 1 Preview"] End If. Repeat for multiple pictures. "Picture #1" and "Picture 1 Preview" are fields of mine. "Picture 1 Preview" is a container for a graphic.
Newbies jdulant Posted March 23, 2002 Newbies Posted March 23, 2002 Ok, I solved it. It was because of the spaces in the subdirectory names. Many thanks. Njal. quote: Originally posted by njal: For some reason the script I am using does not work. I get a $$-1 error in the gErrorCode global field (which is text). I do not know where the mistake is? Any ideas? I will really appreciate them. Set Field ["gErrorCode",External("TrFile-ReferenceToClip","-unused|C:My DocumentsMuseo Larco" & Codigo & ".jpg")"] If ["gErrorCode = 0"] Paste [select, "Multimedia 1"] End If. quote: Originally posted by nightdesigns: quote: Originally posted by njal: [QB]I have exactly the same problem. Which is the plug-in that I need to use to solve it? I used the Troi File Plug-in 2.2. here is the script i use to execute it, be ware of the placement of the spaces, it can mess ya up a bit. you need a global field of "gErrorCode" which is text. Set Field ["gErrorCode",External("TrFile-ReferenceToClip","-unused|Jdx7701ebay-pics" & Picture #1 & ".JPG")"] then a simple If then If ["gErrorCode = 0"] Paste [select, "Picture 1 Preview"] End If. Repeat for multiple pictures. "Picture #1" and "Picture 1 Preview" are fields of mine. "Picture 1 Preview" is a container for a graphic.
Recommended Posts
This topic is 8285 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 accountSign in
Already have an account? Sign in here.
Sign In Now