• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shell script runs this osascript but errors how to stop the error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell script runs this osascript but errors how to stop the error?


  • Subject: Re: Shell script runs this osascript but errors how to stop the error?
  • From: Philip Aker <email@hidden>
  • Date: Thu, 15 May 2008 18:21:05 -0700

On 08-05-15, at 18:10, Ball, Dan wrote:

Hi everyone,

I am running 10.5.2 and trying to do the following:

Can someone take a look at this one liner and tell me what is wrong? I suck at coding and don’t understand why I get the error I am getting. Wondering if anyone can help me to stop this message from appearing.

I have a shell script that runs monthly and I want it to recreate a file and label it red and I came up with this line to label it but I keep getting an error when running it.
/usr/bin/osascript -e 'Tell application "Finder" to set label index of document file "READ_ME.txt" of disk "Temporary_Storage" to 2'



After running that command here is the error I get.....

2008-05-15 21:03:35.015 osascript[264:10b] Error loading /Library/ ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/ QXPScriptingAdditions: dlopen(/Library/ScriptingAdditions/ QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/ MacOS/QXPScriptingAdditions: mach-o, but wrong architecture
osascript: OpenScripting.framework - scripting addition /Library/ ScriptingAdditions/QXPScriptingAdditions.osax declares no loadable handlers.
2



The command runs and works but I get that error above. I don’t think I’m going to worry about it, but if I can stop it from erroring that would be nice. Just wanted to get other opinions on if its my code or what?!!

You have this third party QXPScriptingAdditions.osax scripting addition installed in /Library/ScriptingAdditions. It is not a universal binary. So take it out of that folder and zip it up or trash it. Then restart.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Sent from my SE/30



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Shell script runs this osascript but errors how to stop the error?
      • From: "Ball, Dan" <email@hidden>
References: 
 >Shell script runs this osascript but errors how to stop the error? (From: "Ball, Dan" <email@hidden>)

  • Prev by Date: Shell script runs this osascript but errors how to stop the error?
  • Next by Date: Re: Shell script runs this osascript but errors how to stop the error?
  • Previous by thread: Shell script runs this osascript but errors how to stop the error?
  • Next by thread: Re: Shell script runs this osascript but errors how to stop the error?
  • Index(es):
    • Date
    • Thread