Home > Applescript Error > Applescript Error 10660

Applescript Error 10660

return 1 end if end idle -- Unless GUI Scripting was already on when the script started to run, turn it on or off as per the parameter. tell application "System Events" to set App1IsOpen to (application process "App1" exists) if (App1IsOpen) then --tell application "App2" to launch -- If Board index The team • Delete all board cookies • All times are UTC - 8 hours Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group Fetch Softworks Fetch Roadshow Hopefully in the Applications folder. get redirected here

I made a new folder and put the script and the new app in it. A better way would be to make a switch for this shell script that executes a constrained grep or a free grep, but it's so trivial to put a comma after Does mean=mode imply a symmetric distribution? You can not post a blank message.

tell application "App1" to activate tell application "System Events" set App1WasOpen to (application process "App1" exists) set GUIScriptingWasEnabled to (UI elements enabled) end Tell this script applet to quit. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. return checkInterval else if (App1WasOpen) then -- App1 was open at the last check, but isn't now.

I have searched the HD and cannot find the old app. Last edited by Dreamspinner (2013-03-15 08:30:08 pm) Offline #42013-03-15 10:37:24 pm Shane Stanley Member From: Australia Registered: 2002-12-07 Posts: 4748 Re: Applescript opens wrong version Dreamspinner wrote:How can I point I finally found another reason for filling that property out!EditI got confused as to whether it was CFBundleVersion or CFBundleShortVersionString, which goverened which app was to start based on version number.I Should I use "Search" or "Find” on my buttons?

Last edited by McUsrII (2013-03-15 07:52:40 pm) T.Bp a file peruser, work in progress, but is sane, and lets you copy the file you view to the clipboard. Finding file name οf currently open file in vi on terminal Can Customs make me go back to return my electronic equipment or is it a scam? This can be fixed with the "--" option, a common option in GNU utilities which means "everything after this that starts with a dash is actually a parameter, not an argument." At least my needs, if somebody needs something more sophisticated, then roll your own!

Using Automator to move files one folder up Weird PDF behaviour in Yosemite Copying files to multiple folders using Applescript Looking for simple iTunes track info visualizer Adding SSD iMac Mid This'll help clear up those cases .... [ Reply to This | # ] Search a list of standard Mac error codes for more info Authored by: TheMacOS.com on Feb 17, To search it, you can just use grep, or the following shell script: #!/bin/sh # NOTE: Enter the following two lines as one line # without ANY additional spaces: /usr/bin/grep "$1" The "If exists" now says "RotorDCU got an error: Can't continue exists." A curiosity, but not a big deal. –Mike Feb 18 '13 at 0:12 add a comment| Your Answer

Browse other questions tagged applescript or ask your own question. http://forums.supercard.us/viewtopic.php?f=21&t=89 I would actually discourage against that; aliases are strongly shell-dependent, whereas a Bourne shell script will run on pretty much any Unix/Linux variant. I have a friend that cant open a file, error code: -10660 any ideas what this error means? A better way would be to make a switch for this shell script that executes a constrained grep or a free grep, but it's so trivial to put a comma after

You signed in with another tab or window. http://svbuckeye.com/applescript-error/applescript-error-36.php This discussion is locked Steve Davidson Level 2 (494 points) Notebooks Q: AppleScript Error Codes If this isn't a FAQ, it should be (but there doesn't seem to be a FAQ Join them; it only takes a minute: Sign up Applescript can't open app up vote 2 down vote favorite I've written a Mac app that isn't scriptable (yet), and I'd like Terms of Use Updated Privacy Policy Cookie Usage Apple Store Mac iPod iPhone iPad iTunes Support Search Re: NSAppleScript runs first time but not second [Date Prev][Date Next][Thread Prev][Thread Next][Date

All rights reserved. First of all, you can't easily search for a negative value. One final note. useful reference while($errn=shift){ $ferrn=" "x(6-length($errn))."($errn): "; open $file, '<', $path; while(<$file>){ print $1, $ferrn, $2||"[no description]", "\n" if (m!^\s*(\S*\s+)\s=\s$errn[,]?\s+(?:/\*\s?(.*?)\s?\*/\s*)?$!); } close $file; } exit 0; [ Reply to This | # ] Non-Terminal

How to book a flight if my passport doesn't state my gender? Last edited by Dreamspinner (2013-03-16 07:24:41 am) Offline #82013-03-16 08:24:46 am McUsrII Member Registered: 2012-11-20 Posts: 3046 Website Re: Applescript opens wrong version Nope there is no place where the If you just increase that number, then that app will execute other places, as the app with the highest version number "wins".This is the most practical way to do it, if

So, I rewrote my code as follows but it still will not launch the > application.

  • Enter just "p" for help.
  • tell application "App1" set hdg to getHeading set beam to hdg as string end tell
  • the script I posted seems to clear those out.
  • Filed under: CFBundleProperty Offline #172013-03-16 11:46:57 pm Shane Stanley Member From: Australia Registered: 2002-12-07 Posts: 4748 Re: Applescript opens wrong version McUsrII wrote:CFBundleVersion is a single increasing integer.Not exactly; it's
  • Once saved, you can do something like this (assuming a script name of "errcode"): % % errcode 5402 qtsBadDataErr = -5402, /* something is wrong with the data */ This script

Invalid index.", -1720: "Invalid range.", -1721: "Wrong number of parameters for command.", -1723: "Can't get reference. Why are some programming languages turing complete but lack some abilities of other languages? The correct one shows 0.1.4(2).Okay, I got PListEdit Pro. global App1WasOpen, GUIScriptingWasEnabled, previousText on run -- When the script starts up, note if App1 is running and GUI Scripting is enabled.

They will be ignored. Is there a specific place the app should live? If they have more than one copy of Word, you can't control which one opens.Thanks Shane.If I use a path to Applicatons and they put the app on their desktop, it this page The correct version of the app is in the Applications folder.

This is just a good habit to get into; it makes porting any Bourne shell script to another platform that much easier. What's New:Hints1 new Hints in the last 24 hoursComments last 2 daysNo new comments Links last 2 weeksNo recent new links What's New in the Forums? launchScript returned: www.macosxautomation.com/applescript/apps/ Offline #112013-03-16 08:21:52 pm McUsrII Member Registered: 2012-11-20 Posts: 3046 Website Re: Applescript opens wrong version According to Cocoa Fundamentals I believe (that can be downloaded from

Either of the following scripts get "An error of type-10660 has occurred.". Adjust to requirement. Enter just "p" for help. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic

I'm going to edit the OP to tell what's been done and the results. –Mike Mar 16 '13 at 11:38 add a comment| 1 Answer 1 active oldest votes up vote Previous by thread: Re: NSAppleScript runs first time but not second Next by thread: who is interfering with this Unicode result? The droplet it created worked fine when you first tried it, but it does not work after you logged off and in again. Putting the path where ir is supposed to open App2 has no effect.The dialog displays "App1 is open" but not the one for beam and previousText Applescript:if (App1IsOpen) then

See my reply to Shane for at least partial resolution. Not the answer you're looking for? This time it does not even launch it once. > > > > NSString * launch = @"tell application \"MyApp\"\n launch\n end tell\n"; > > if (gMyAppAppIsRunning == FALSE) > {