What can I do if the script runs faster than the network?
I wrote a script between applications moving to InDesign, where he begins to AppleScript, to Photoshop, which AppleScript runs a JavaScript script to perform various tasks.
It works beautifully on my laptop at home where I do my development. Yesterday, using me as a Guinea pig, I tried it in the office.
On the third round, I was horrified to see the ExtendScript Toolkit pop up with an error message (about as welcome to see an AppleScript script, asking the user to open the Script Editor and fix a script).
The error message was that app.bringToFront (); was not a valid function.
This was the case in InDesign, which has a different activation function, and I realized that, even if my AppleScript called Photoshop activate, I was still in InDesign.
The app.bringToFront JavaScript was so called because I had joined my code in the model of Tranberry.
So I pressed the button stop on ExtendScript, returned to InDesign and represented the script. This time he worked as usual.
Occasionally on our network we spend some time beachball - watch as a communication happens in the background. So I guess the time wherever the error was thrown was on one of these downturns in the network.
The passage of InDesign, Photoshop is not happening pretty fast, but the script has run and has issued an order Photoshop JavaScript while I was still in InDesign.
In AppleScript this unhappy communication with users can be avoided using blocks '... try error'.
Is there an equivalent of the error handling in JavaScript that would allow me to avoid being tossed in the ExtendScript Toolkit and give them a friendly message to apologize, explaining what had happened and inviting them to try again?
JavaScript has try/catch blocks
try {}
app.bringToFront ();
} catch (e) {}
error handling code
}
Or you might be able to use an if statement
If (app == 'photoshop') {}
app.bringToFront ();
} else {}
app handle not photoshop
}
Tags: Photoshop
Similar Questions
-
Hi, I have 3 computers on the network; two Vista and one running windows 7. The computer of windows 7 can be placed in the network map (and I seem to be unable to it remote desktop). This could be the cause? I tried everything in the help documentation. My router is a linksys 610n. Computers have no NVIDIA cards or controllers. Here's a screenshot of what I see in the network adapter:
Hello
Excellent Sam Job Varkey information should contribute to solve in this case, however some is
Added information that can help as appropriate:Share files and printers between Windows 7 and XP
http://www.howtogeek.com/HOWTO/Windows-7/share-files-and-printers-between-Windows-7-and-XP/Configuration network host connection windows 7, xp and vista
http://Techblissonline.com/home-network-setup-connecting-Windows-7-XP-and-Vista/Networking of computers running different versions of Windows
http://Windows.Microsoft.com/en-us/Windows7/networking-home-computers-running-different-versions-of-Windows=========================================
More help at these locations: (Vista references also apply to Windows 7)
Vista - LAN
http://www.onecomputerguy.com/Networking/vista_network.htmVista network and sharing Center
http://www.onecomputerguy.com/Networking/vista_network_sharing_center.htmSetting up a network home
http://Windows.Microsoft.com/en-us/Windows7/setting-up-a-home-networkSetting up a wireless network
http://Windows.Microsoft.com/en-us/Windows7/setting-up-a-wireless-networkHome network, wireless network and computer networking Made Easy
http://www.home-network-help.com/Windows Vista tip: How to install and connect to a wireless network
http://www.watchingthenet.com/Windows-Vista-tip-how-to-Setup-and-connect-to-a-wireless-network.htmlNetworking tutorial home
http://www.tehnomagazin.com/computer/home-networking-tutorial.htm
Practically networked - everything you could possibly want to know.
http://www.practicallynetworked.com/I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
What can reset so that the Research Assistant appears instead of windows search?
When I click on search in a folder I get Windows Search instead of the search wizard. This happened after I installed an upgrade to the indexing service. What can reset so that the Research Assistant appears instead of windows search?
Hey Bgol,.
Welcome to the forum!
You can get your search companion to Windows Search 4.0 uninstall feature. You can do this:
· Click Start
· Click on Control Panel
· Click Add or remove programs
· Right-click Windows Search 4.0
· Click Remove
It will come back to your system by using the search instead of the Windows Search Assistant.
Hope that helps, I look forward to hearing from you.
Steven
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
What can I change to the line "bcc" see all the time on a screen of your messages?
What can I change to the line "bcc" see all the time on a screen of your messages?
You use Windows Mail? (You don't say).
Open a new message and vision. All the headers. Check it out.
-
I travel to another country and my creative cloud doen't work. What can I do?, the error that says I don't paid subscription, but I already pay.
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)Creative cloud support (all creative cloud customer service problems)
http://helpx.Adobe.com/x-productkb/global/service-CCM.html -
What can I publish on the App of the kiosk in the CC of Flash?
What can I publish on the App of the kiosk in the CC of Flash?
http://airextensions.NET/shop/extensions/newsstand-Kit-by-vitapoly/
-
What can I do with the database in offline mode
What can I do with the database in offline mode?
Other than for developers to understand the structure of database objects, what can I do with objects of database offline at development time.
Is there anyway that I can refer to the tables defined in the database offline of EO, VO, even if the tables have not been defined in the database online?
Thank youThere are some useful articles and the doc on the Web:
http://download.Oracle.com/docs/CD/E18941_01/tutorials/jdtut_11r2_81/jdtut_11r2_81_2.html
and http://susanduncan.blogspot.com/2011/06/fine-tuning-your-logical-to-physical-db.html
and a tutorial http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/databasedevelopment/obe_%20databasedevmt.htmTimo
-
original title: WiFi
I can't connect to the network wirelessly with my Emachines eM350 portable because I get the automatic Wireless Configuration error, see Article 871122.
I use a Huawei E585. I simply want to clamp it alll in the tray.
Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Ideas:
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
(1) make sure that u run "NET START WZCSVC" on the command-line as soon as u Ouvrezunesession WINDOWS XP (START, RUN, NET START WZCSVC (command line)).
(2) START, CONNECT, WIRELESS INTERNET CONNECTION
--> under the 'GÉNÉRAL' tab: (1) right click on the wireless Internet connection; (2) click on properties; (3) make sure that all THE ELEMENTS under the title "THIS CONNECTION USES THE FOLLOWING ITEMS" are COMPLETELY FUNCTIONAL, i.e. UNCHECK THE ONES THAT DO ARE NOT ACTIVE ~! (I recently turned off AVG and that this item has been inadvertently clicked on ~!) ;
--> on the 'ADVANCED' tab: run the NETWORK CONFIGURATION WIZARD to reset your network
3) http://support.microsoft.com/kb/871122 --> RUN 'DIFFICULTY CE PROBLEM' (ms - fix 50469)
-
Loudness Radar can run faster than real time?
My apologies if this has been asked before - I couldn't find an answer to a search.
Loudness Radar can run faster than real time? Making sure that my levels is ready for dissemination of a television show, I'll have to essentially play through the whole thing to get a global level. Is it possible to have the Loudness Radar go on and give me a general level without having to hit 'play' and go away for a while? I'd like to be able to do in the first, but I'm fine with the export of hearing if that's what it takes.
I've never had a problem with just dropping the main level (make sure that the Loudness Radar is set to post fader, btw). So in your example, Yes, I turn down the master by 0.9db.
Speaking of which, my new faster way to manage the volume on the content of the longer emissions must export just the audio format .wav temporary somewhere, then load this file in hearing and its volume tool to know the LKFS level. Then, I take whatever number I get and set the main volume in first to do no matter what level the station/deaf network/tv customer needs. It's a heck of a lot faster, since the hearing can analyze loudness faster than real-time. On 30 seconds, commercials, using the Loudness Radar in Premiere Pro's no big deal, but dealing with half-hour TV series, with the help of hearing on export to .wav is much faster.
-
What is a connection to the network tunnel adapter local?
tunnel map
What is a connection to the network tunnel adapter local?Hello, Alan Winwynn,.
Thanks for your post. If you have a specific problem you need covered? In the affirmative, please let us know the issue you are facing, so that we can better help you.
The tunnel of the card, in short, encapsulates IP6 packages with an IP4 header so that it can be sent over a network, IP4, no problem.
See you soon
-
What is a user of the NETWORK and how to disable this user by CMD?
What is a user of the NETWORK and how to disable this user by CMD?
I found a user named ASPNET on my computer. For security reasons, I need to disable this user.
There are hundreds of computers in my company.
How can I deactivate this user? By CMD or domain controller?
In addition, if I disable the ASPNET user, what affects you on Windows & and Windows XP?
Thank you!
This issue is beyond the scope of this site and must be placed on Technet or MSDN
-
Error found: iP1600 printer can be connected to the network
Title: Problem of networking; model of the host is running XP and can not print from computer laptop/WIN 7
Hi, my host comp. is running WIN XP and laptop WIN 7. I've already updated the printer driver Canon witch is connected to the host model. On the hardware of the laptop I can see the printer is on a network, but... cannot print the test page / troubleshooting of the error found: iP1600 printer can be connected to the network.
I also downloaded on laptop CanonPrinter add-on driver, this driver necessary?
Hello
I suggest you install the drivers for PIXMA iP1600 on both Windows XP computer and check if the problem persists.Hope this information helps. -
I can't connect to the network wirelessly with my Dell INSPIRON laptop because I get the automatic Wireless Configuration error, see Article 871122
Try this below and see if it help you.
-
Please what can I do with the 5,157,61 on my Canon MG6350 printer error code?
I have another router and now I have problems to scan documents on my type of printer MG6350. I'm getting the 5,157,61 error code.
What is the problem and what can do?
Thank you very much for your support.
Misco25
Do you have your new router in the printer itself yet entered information?
-
New Wireless Desktop 800 with no transceiver - what can I do with the keyboard and mouse?
I have a MS Wireless desktop 800. After a week, I broke the mini transceiver and bought a new game. Since the first set keyboard and mouse are matched at the factory and cannot be re-synched, I find myself with essentially a new keyboard and mouse that I can't use. I wouldn't throw out - they are brand new. Is this WHAT can I do with them?
Hello
There is no suggestion that we can do to solve this problem.
It's specific hardware of matching which can only be solved through software.
You must contact the material support of the link below:
How to replace Microsoft software or hardware, order service packs and replace manuals:
http://support.Microsoft.com/kb/326246
I hope this helps.
Maybe you are looking for
-
How to use the recovery CD?
Hello Ive lost the instructions to tell me how to use the recovery CD. I forgot, I need to press to access the disks when I reboot! Can anyone help please?St. Clare
-
We have a very old Presario, connected to a 4550 old CRT display and we can also find a functional printer with old shaped connectors. There are two USB ports on the back of the tower - could connect us a more modern screen and a printer to this tour
-
White loading bar appears after the splash screen. TAKES FOREVER TO FILL!
I recently formatted my windows xp because it was slowing down. I do this once a year and its good because my newly formatted computer takes 30 sec or less to load. However this time I formatted, after the screen intel and BIOS, a black scren appears
-
When I try to use the send to compressed (zipped) folder option when I right click on a file I get the following message Unable to complete the operation. Access is denied. However I do have permisions complete on the file and I am the only user and
-
If I buy one on lab with windows 7 installed what I buy windows7 to update my computor House or I can do it for free original title: update vista