Re: Shell script runs this osascript but errors how to stop the error?
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: "Ball, Dan" <email@hidden>
- Date: Thu, 15 May 2008 21:28:28 -0400
- Thread-topic: Shell script runs this osascript but errors how to stop the error?
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.
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