Jump to content

Insert Picture Command


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

Recommended Posts

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?

Link to comment
Share on other sites

  • Newbies

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

-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.


Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Newbies

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.


Link to comment
Share on other sites

  • Newbies

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.



Link to comment
Share on other sites

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