• 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: Fri, 16 May 2008 01:20:55 -0700

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

Philip,

LOL......don't I feel stupid!!! Thanks for the input! Must be something from QuarkXPress. We don't use it anymore so it shouldn't hurt deleting it.

I thought I had something wrong in the script causing it to look for something stupid and erroring.

You're not alone -- I learnt about the problem in much the same way…


Thanks again,

Dan


On 5/15/08 9:21 PM, "Philip Aker" <email@hidden> wrote:

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
References: 
 >Re: Shell script runs this osascript but errors how to stop the error? (From: "Ball, Dan" <email@hidden>)

  • Prev by Date: Re: PowerPoint applescript for shape type free form
  • Next by Date: How do I read a file ...
  • Previous by thread: Re: Shell script runs this osascript but errors how to stop the error?
  • Next by thread: PowerPoint applescript for shape type free form
  • Index(es):
    • Date
    • Thread