Use BridgeTalk,but my script doesn't work
Hi,
I want to use BridgeTalk to open a image in photoshop,but my script doesn't work.
Anyone can tell me why?Thanks!
Best Regards
goldbridge
#target indesign
#targetengine "MyEngine"
var doc=app.activeDocument;
if(doc.selection.length>0)
if(doc.selection[0].constructor.name=="Image")
jpgpath=new File(app.selection[0].itemLink.filePath);
bt = new BridgeTalk;
bt.target = "photoshop";
bt.type = "iterator";
bt.body="{app.open(jpgpath);}";
bt.onResult = function(resObj) {};
bt.send();
BridgeTalk.bringToFront("photoshop");
In your body script… jpgpath is just part of a string you have not constructed this to pass the variable… Also some classes are considered complex types so you need to toSource() and then eval…
#target indesign
#targetengine "MyEngine"
var doc=app.activeDocument;
if(doc.selection.length>0)
if(doc.selection[0].constructor.name=="Image")
jpgpath=new File(app.selection[0].itemLink.filePath).toSource();
bt = new BridgeTalk;
bt.target = "photoshop";
bt.type = "iterator";
bt.body = "{app.open( eval (" + jpgpath + ") );}";
//$.write( bt.body );
bt.onResult = function(resObj) {};
bt.send();
BridgeTalk.bringToFront("photoshop");
Similar Messages
-
I used Feedburner but it still doesn't work.
I followed instructions on how to use ourmedia.org, embedding the files to a blog, and then using that blog in feedburner to crank out an address that iTunes is supposed to like. It doesn't like it. Says "Feed has no episodes" when it really has two.
Can someone point me to clear instructions on how to submit podcasts to iTunes properly?If it's saying that the feed has no episodes then there is something wrong with the feed, or the episodes are in a format iTunes can't handle, such as .wmv or Flash. It's not possible to commend further unless you would like to post the URL of your feed.
This page may be helpful:
http://www.wilmut.org.uk/pc -
At the moment i'm using my macbook pro with an ethernet cable = where i'm now i don't have wi-fi -> now i'm trying to do a wi-fi hotspot for my iphone through my macbook pro, but it's doesn't work - please help me!
Theres almost a trick to it for first time users, goto SETTINGS...General......Cellular (if Verizon) ....Personal Hotspot, turn it on.....turn on wifi on your Mac, select your Iphone. Enter password.
If you take too long doing it, youll need turn turn off and on real quick the "personal hotspot" slider on the Phone.......then go quick again thur the Mac. -
Hi! I'm using a Macbook Pro, and my photo booth stopped working! I just updated my software yesterday, but it still doesn't work!! The green light does go on though, any suggestions on how to make it work?
In what way is it not working?
Please describe in detail all you have attempted to do in order to resolve the issue. -
firefox sent an update to my imac but I couldn't download it because it said it came through an email improperly coded or tried to use adobe acrobat and that doesn't work. what do I do??
What to Do When Your iPad Won't Turn On
http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
iOS: Not responding or does not turn on
http://support.apple.com/kb/TS3281
iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
iPad: Basic troubleshooting
http://support.apple.com/kb/TS3274
Update and restore alert messages on iPhone, iPad, and iPod touch
http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
iOS: Resolving update and restore alert messages
http://support.apple.com/kb/TS1275
iPad: Unable to update or restore
http://support.apple.com/kb/ht4097
iTunes: Specific update-and-restore error messages and advanced troubleshooting
http://support.apple.com/kb/TS3694
Cheers, Tom -
I use an online application that doesn't work with FF, but I had been able to use an IE plugin within FF and it worked fine. After the last update (3.6.12), it says plugin is not compatable with version. Help
go to '''TOOLS '''then '''OPTIONS''' then '''ADVANCED''' then '''NETWORK tab''' then '''SETTINGS tab''' and select the options '''NO PROXY''' click '''OK''' and '''OK '''again in the next screen. With that you have disabled the proxy settings.
''if you like to not disable the proxy settings choose'' : '''Auto-detect proxy settings for this network''' (it is in the same session)
thank you
Please mark "Solved" the answer that really solve the problem, to help others with a similar problem. -
Many common websites won't load, all I get is a blank page. I am running Windows Vista. Tried virus scans, got rid of some adware but it still doesn't work. I am now using Google Chrome. I've used Firefox for many years, but this isn't acceptable
== URL of affected sites ==
http://www.amazon.com
== User Agent ==
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4Update: This is NOT just related to "Yahoo" pages, while this problem first began with some of my Yahoo pages, it is now also happening with other NON Yahoo things I want to load up. Like Twitter, or Links in emails that load Blank, or even images within emails that show up Blank in the preview part of Yahoo mail. It is NOT a Yahoo issue as I have loaded up my Yahoo Mail in IE and Chrome, and everything loads wonderfully. I can even load up sites like Twitter, and other websites that will NOT load in Firefox, but they come up fine in other Browsers.
I have done the ONLY suggestion that came from Firefox Tech support, to load up FF in Safe Mode, but the problems still exists. I have uninstalled FF and re-loaded it, but the same problem is there.
Does anyone have any ideas here at all? I can't seem to get any Fire Fox help, so I am reaching out to the community here to see if anyone can help.... Thank you !! -
Buckup SQL Script doesn't work
Hi all,
In ECC i want schedule ASE jobs to dump transaction logs,i do it fellow the note 1588316 step by step . In schedule jobs my sql script doesn't work,but it works in sql command line.
sql script :
dump transaction DEV using config= 'DEVLOG'
Anybody can give me some advise to face this issue? Thanks in advance.
David LvHi all,
My problem sloved, it's JSagent problem.
sp_dumptrans not working at dbacockpit @Alcino Melo
use sybmgmtdb
go
sp_js_wakeup "start_js",1
go
after start JSagent my sql script can run
Thanks all
David Lv -
Mount volume script doesn't work after upgrading to Yoesmite
I just upgrade my Mac OS to Yosemite and the boot up mount script doesn't work again.
try
mount volume "afp://admin:[email protected]/Multimedia/Music"
mount volume "afp://admin:[email protected]/workspace"
end try
Should I modify the mount script and how to do that?
Thank you so much.
Matthew HoI am having the exact same problem. I just did a complete re-install of max os x and did all of the updates..my hard drive had crashed so i had to replace it. lot's of fun.. and after the last upgrade i can't use my sound at all.. the sound shows that it's all the way up but it has the "no Smoking" sign as well..
i have tried to restart.. change options and whatever else i could .. i did notice that when i enable the option to show the sound icon on the main bar that there is just a blank spot where it should be.. and i can't change it form there either because it just doesn't show..
any one seen this before.. ?
all my other Mac's work fine..
please help.. -
Our webpage used to display perfectly in Firefox now it doesn't. When I view page source the following appears among the HTML: <pre><nowiki><p>This page uses frames, but your browser doesn't support them.</p> </nowiki></pre>
Our webpage displays perfectly in IE 8.0
''Moderator added tags to show the HTML formatting tags and text.''You only get the "This page uses frames, but your browser doesn't support them." text if either frames are disabled or you use a browser that doesn't support frames (the text is in a <noframes> </noframes> block). Firefox would display this text under normal conditions.
Note that the Menu object is IE only and doesn't work in Firefox.<br />
See the Browser Console (Firefox/Tools > Web Developer;Ctrl+Shift+J) for errors.<br />
The page source also shows red code for the map tag (start tag "map" seen in "table").<br />
A lot of images seem to be missing or aren't loaded because of script errors. -
I am getting an error message with my snap scan ix500 that says the Evernote is not installed properly when I try to transfer it. I have uninstalled/reinstalled evernote and the scan snap softward but it still doesn't work. Anyone know where evernote stores their files on a Mac? Or had this problem.
Are there any dialog boxes popping up behind your Yahoo screen?
I have intermittent problems attaching files in Yahoo mail and this is usually the reason. I'm also using an iMac (10.7.3) and this is likely the problem.
It is generally a Yahoo issue rather than a Mac problem. -
I have purchased the Acrobat pro subscription for 1 year and have followed the steps to install it. But when i go to start it, It crashes and it does this every time! I have restarted my mac pro and also restarted in safe mode but it just doesn't work! PLEASE HELP!!
Hi jim1287,po
Check for the latest updates. Installing latest updates should resolve this problem.
Also, try to ran disk repair using safe mode in Mac, for instructions please visit: http://support.apple.com/kb/PH14204
Try enabling root user profile on mac and try to check. OS X Mavericks: Enable and disable the root user
Regards,
Ajlan Huda. -
NetworkManager dispatcher script doesn't work
Hey there,
i have created a script in networkmanagers dispatcher.d directory to automount my NAS once my home wifi is connected and unmount it once the connection is lost.
The dispatcher service is running and all permissions and the execution bit are set like it should be. But my script doesn't get called at all!
i also tried installing this package: https://www.archlinux.org/packages/comm … cher-sshd/ and modifying its script but that also doesn't work.
Is there some hidden settings file or something? What might be the cause for this?
Thanks.Did you start/enable the NetworkManager-dispatcher service with systemctl? I'm not clear on what you mean by it's "running".
Last edited by Scimmia (2014-03-23 19:57:10) -
Payed for subscription, but Muse CC doesn't work, it asks me serial number
payed for subscription, but Muse CC doesn't work, it asks me serial number, any help?
Hi,
Depending on your OS, please try the steps below
Windows
Click on the "Start" menu. Select "All Programs" and then "Accessories"
Right-click on "Notepad" and select "Run as Administrator"
Click "Continue" on the "Windows needs your permission" dialog
When Notepad opens, click File and select Open
In the filename field type the following:
C:\Windows\System32\Drivers\etc\hosts
If any entries in the host file include keywords such as "adobe," delete those entries. These are used for Adobe Licensing.
From the "File" menu select "Save" after making changes
Restart Muse
Macintosh
Click on the "Finder" icon. Select the "Applications" folder
Open the "Utilities" folder and select "Terminal"
Type the following:
sudo nano /etc/hosts
Enter the OS user's associated password when prompted
If any entries in the host file include keywords such as "adobe," delete those entries. These are used for Adobe Licensing.
Press control+o to save the file
Press control+x to close the file
Restart Muse
Let me know the result -
When I pluged in my iPad, I was told to download the newest version of iTunes. But the download doesn't work. There is no message about this, except "Thank you for downloading iTunes".
What can I do?
Thank you for your answer.
PeterHello REIP,
Thanks for using Apple Support Communities.
For more information on this, take a look at:
iTunes: How to install the latest version
http://support.apple.com/kb/ht5654
Windows: Choose Help > Check for Updates
Best of luck,
Mario
Maybe you are looking for
-
I just bought the GB Zen Nano Plus and I love it. But today something weird happened, it was playing through my songs as normal the at the end of a certain song when it went to the next track, this next track did not automatically start playing as it
-
My iTunes ext/int drive question a little more clear:
How do you fully restore a back up of itunes? i have one fully saved on an external drive called 'backup' and it was from february, but i have only added some cd's since then, so they can be re-added later. So how do i clear what is in my internal ha
-
All of user's appts archived today; how to unarchive the whole lot?
GW 7.0.3 server on SUSE OES box, client on WinXP SP2 User calls, "Help! All my appts are missing!" I go check filters, etc., nothing there. Check trash, there are a few there. Check archive - hundreds. Archived calendar looks exactly like live cal sh
-
Hi All I have a small doubt. If we donu2019t set the flag as active for application component BW & NDI what will be the impact in BW load? Thanks Sravani
-
How do change the postition of the code navigator so that it does not cover up the tag that I am looking at or editing. I don't want to turn it off I only want it to popup close to the tag but not on top of it.