Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I set the value for the "fileUrl" in the "core" infoset, "immediate"

New Here ,
Sep 03, 2008 Sep 03, 2008
I can't change the fileUrl for a thumbnail. Everytime I set the value to something else. It just changes back. Does anyone know how to do this? Is there a setter I don't know about?

I get the thumbnail like this:
var myThumb = app.document.getSelection()[0];

then change it like this:
myThumb.core.immediate.fileURL = "c:\\Test"

it returns this:
"c:\Test"

but after opening the thumbnail and going back up a directory, it changes back to the original. :(
TOPICS
Scripting
538
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 03, 2008 Nov 03, 2008
You would only set a value in an infoset if you were actually implementing an ExtensionHandler and ExtensionModel. (A task not to be taken lightly.) If you're using a Thumbnail object, the infosets fields are read-only.

What the heck are you trying to do anyway--move the file? Try Thummbnail.moveTo().
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 04, 2008 Nov 04, 2008
Thanks for the reply David. The problem is that whenever you create a project, it's default location is in "My Documents", which our company has located over a network for easy backup. As you know, working with design files over a network is a no-no. So I was trying to come up with a way to change the default location.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 07, 2008 Nov 07, 2008
LATEST
What do you mean by "create a project?" Bridge has no feature which creates anything called "a project". Version Cue uses "projects" as do various point-products in the Creative Suite, and some third-party scripts may use the term "project" for something. Without knowing what you are talking about I can't help, but I'm pretty sure you're going to have to seek a solution for how some other product, or a script works, not with Bridge.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines