Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hello2468

macrumors newbie
Original poster
Aug 28, 2008
4
0
Hello,

I have written a simple apple script. It copies XYZ folder in /Applications folder, then launch an sample Xcode application(Say App1). When App1 is closed by the user, it deletes XYZ folder.

I am saving the script as read only application (say Setup.app). This Setup.app is running fine on Mac Intel, but it is crashing on PPC when user closes App1. In the crash report, it is found that Setup.app is crashing.

The funny thing is that if the script is run as script in the Script editor, it works fine. But when it is run as application, it crashes on PPC.

Mac PPC 10.4.9 is used.

Any suggestions(ASAP) would be most welcome.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Only thing I can suggest is when you save it as an application, make sure you choose the "Application bundle" format instead of "Application". This will ensure it is a universal binary which should load properly on both Intel and PPC.
 

hello2468

macrumors newbie
Original poster
Aug 28, 2008
4
0
Thanks for your reply. I tried with Application bundle, but still i can see Setup.app getting crashed on PPC. I tried the application bundle created on Intel as well as PPC. But all in vain.

Crash report:

Date/Time: 2008-09-01 14:43:58.574 +0530
OS Version: 10.4.10 (Build 8R218)
Report Version: 4

Command: applet
Path: /Volumes/OxsemiFirmwareUpgrade/Setup.app/Contents/MacOS/applet
Parent: WindowServer [70]

Version: ??? (???)

PID: 333
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0xff617548

Thread 0 Crashed:
0 com.apple.applescript 0x9973d95c GCMakeString(unsigned long) + 44
1 com.apple.applescript 0x9973e4a4 GCMakeString(unsigned long, unsigned char const*) + 28
2 com.apple.applescript 0x9973e504 UASPushString(unsigned long, char const*, unsigned long, StScrpRec const*) + 40
3 com.apple.applescript 0x9978d02c PushChars(AEDesc const*) + 84
4 com.apple.applescript 0x9978de50 DecodeAEDescInternal(AEDesc const*, TUASDecodeState) + 116
5 com.apple.applescript 0x997a0dcc UASDecodeReply(TStackFrame_UASRemoteSend*, short, AEDesc*, unsigned char*) + 1668
6 com.apple.applescript 0x997a10e0 UASRemoteSend(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*) + 632
7 com.apple.applescript 0x9977ad3c UASActor_Send(unsigned char, unsigned char, unsigned char) + 720
8 com.apple.applescript 0x997b1354 UASValue_Send(unsigned char, unsigned char, TUASClassIndex, unsigned char) + 352
9 com.apple.applescript 0x99782910 UASExecute1() + 328
10 com.apple.applescript 0x997648c8 ASExecuteEvent(AEDesc const*, unsigned long, long, unsigned long*) + 900
11 ...ple.CoreServices.CarbonCore 0x90bde090 CallComponentFunctionCommon + 1112
12 com.apple.applescript 0x99738418 AppleScriptComponent + 1712
13 ...ple.CoreServices.CarbonCore 0x90bddbd4 CallComponent + 260
14 com.apple.openscripting 0x930ea878 OSAExecuteEvent + 52
15 com.apple.applescript 0x9975afc8 Applet::RunScript(AEDesc const*, AEDesc*) + 604
16 com.apple.applescript 0x9975840c Applet::DoScriptEvent(AEDesc const*, AEDesc*) + 576
17 com.apple.applescript 0x997581b8 ScriptEventHandler(AEDesc const*, AEDesc*, long) + 40
18 com.apple.AE 0x914ff960 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 208
19 com.apple.AE 0x914ff7fc dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 44
20 com.apple.AE 0x914ff654 aeProcessAppleEvent + 284
21 com.apple.HIToolbox 0x9329b2e0 AEProcessAppleEvent + 60
22 com.apple.applescript 0x997584c8 Applet::HandleAppleEvent(EventRecord*) + 60
23 com.apple.applescript 0x9975a37c Applet::processEvent(unsigned long) + 92
24 com.apple.applescript 0x997589f4 Applet::Main() + 328
25 com.apple.applescript 0x99758c94 OSAAppletExecute + 60
26 com.apple.applescript 0x99758e0c AppletComponent + 176
27 ...ple.CoreServices.CarbonCore 0x90bddbd4 CallComponent + 260
28 applet 0x000035a0 0x1000 + 9632
29 applet 0x00002d70 0x1000 + 7536
30 applet 0x00002c14 0x1000 + 7188

Thread 0 crashed with PPC Thread State 64:
srr0: 0x000000009973d95c srr1: 0x000000000200d030 vrsave: 0x0000000000000000
cr: 0x84004248 xer: 0x0000000000000007 lr: 0x000000009973d95c ctr: 0x0000000091506008
r0: 0x000000009973d95c r1: 0x00000000bfffee00 r2: 0x000000000058fe90 r3: 0x0000000007c0b6c7
r4: 0x0000000000000007 r5: 0x0000000000000002 r6: 0x0000000000000000 r7: 0x0000000000000020
r8: 0x0000000000000030 r9: 0x000000000058f000 r10: 0x000000009973d9e8 r11: 0x00000000a9736cd8
r12: 0x0000000091506008 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x00000000a9730e70
r20: 0x00000000a9730e70 r21: 0x000000000000000b r22: 0x00000000bffff0b0 r23: 0x0000000000000000
r24: 0x0000000000000000 r25: 0x0000000000000000 r26: 0x00000000a972e4e4 r27: 0x0000000000000002
r28: 0x00000000ff61754c r29: 0x0000000000f816d8 r30: 0x00000000a9736108 r31: 0x000000009973e4e4

Binary Images Description:
0x1000 - 0x3fff applet /Volumes/OxsemiFirmwareUpgrade/Setup.app/Contents/MacOS/applet
0x84000 - 0x84fff com.apple.applescript.component 1.10.7 /System/Library/Components/AppleScript.component/Contents/MacOS/AppleScript
0x55d000 - 0x55dfff com.apple.osax.digihub 1.0 /System/Library/ScriptingAdditions/Digital Hub Scripting.osax/Contents/MacOS/Digital Hub Scripting
0x799000 - 0x7d6fff com.apple.osax.standardadditions 1.10.7 (???) /System/Library/ScriptingAdditions/StandardAdditions.osax/Contents/MacOS/StandardAdditions
0x8fe00000 - 0x8fe52fff dyld 46.12 /usr/lib/dyld
0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x9021b000 - 0x90268fff com.apple.CoreText 1.0.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90293000 - 0x90344fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90373000 - 0x9072efff com.apple.CoreGraphics 1.258.75 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907bb000 - 0x90894fff com.apple.CoreFoundation 6.4.7 (368.28) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x908dd000 - 0x908ddfff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908df000 - 0x909e1fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a3b000 - 0x90abffff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90ae9000 - 0x90b5bfff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b71000 - 0x90b83fff libauto.dylib /usr/lib/libauto.dylib
0x90b8a000 - 0x90e61fff com.apple.CoreServices.CarbonCore 681.15 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec7000 - 0x90f47fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90f91000 - 0x90fd3fff com.apple.CFNetwork 129.21 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x90fe8000 - 0x91000fff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x91010000 - 0x91091fff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x910d7000 - 0x91100fff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x91111000 - 0x9111ffff libz.1.dylib /usr/lib/libz.1.dylib
0x91122000 - 0x912ddfff com.apple.security 4.6 (29770) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x913dc000 - 0x913e5fff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913ec000 - 0x913f4fff libbsm.dylib /usr/lib/libbsm.dylib
0x913f8000 - 0x91420fff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91433000 - 0x9143efff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x91443000 - 0x914befff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914fb000 - 0x914fbfff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x914fd000 - 0x91535fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x91550000 - 0x91622fff com.apple.ColorSync 4.4.9 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91675000 - 0x91706fff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x9174d000 - 0x91804fff com.apple.QD 3.10.24 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x91841000 - 0x9189ffff com.apple.HIServices 1.5.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x918ce000 - 0x918effff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91903000 - 0x91928fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x9193b000 - 0x9197dfff com.apple.LaunchServices 182 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x91999000 - 0x919adfff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x919bb000 - 0x91a01fff com.apple.ImageIO.framework 1.5.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a18000 - 0x91adffff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x91b2d000 - 0x91b42fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91b47000 - 0x91b65fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91b6b000 - 0x91c22fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91c71000 - 0x91c75fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91c77000 - 0x91cdffff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91ce4000 - 0x91d21fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91d28000 - 0x91d41fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91d46000 - 0x91d49fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91d4b000 - 0x91e29fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x91e49000 - 0x91e49fff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91e4b000 - 0x91f30fff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91f38000 - 0x91f57fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91fc3000 - 0x92031fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x9203c000 - 0x920d1fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x920eb000 - 0x92673fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x926a6000 - 0x929d1fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x92a01000 - 0x92aeffff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x92af2000 - 0x92b7afff com.apple.DesktopServices 1.3.6 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x92bbb000 - 0x92de6fff com.apple.Foundation 6.4.8 (567.29) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92f04000 - 0x92f0efff com.apple.framework.AppleTalk 1.2.0 (???) /System/Library/Frameworks/AppleTalk.framework/Versions/A/AppleTalk
0x92fb4000 - 0x92fb4fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92fb6000 - 0x92fcafff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x92fe2000 - 0x92ff2fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x92ffe000 - 0x93013fff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x93025000 - 0x930acfff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x930c0000 - 0x930cbfff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x930d5000 - 0x93102fff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x9311c000 - 0x9312bfff com.apple.print.framework.Print 5.2 (192.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x93137000 - 0x9319dfff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x931ce000 - 0x9321dfff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x9324b000 - 0x93268fff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x9327a000 - 0x93287fff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x93290000 - 0x9359efff com.apple.HIToolbox 1.4.9 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x947b7000 - 0x947c6fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x947ce000 - 0x947dbfff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x94821000 - 0x9483afff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x94c44000 - 0x94cb5fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x9508a000 - 0x950a7fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
0x955a5000 - 0x956d3fff edu.mit.Kerberos 5.5.25 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x96695000 - 0x9669afff com.apple.URLMount 2.1.7 /System/Library/PrivateFrameworks/URLMount.framework/Versions/A/URLMount
0x980f7000 - 0x9810dfff com.apple.AppleShareClient 1.5.2 /System/Library/Frameworks/AppleShareClient.framework/Versions/A/AppleShareClient
0x98117000 - 0x98155fff com.apple.AppleShareClientCore 1.5.2 /System/Library/Frameworks/AppleShareClientCore.framework/Versions/A/AppleShareClientCore
0x99736000 - 0x997e0fff com.apple.applescript 1.10.7 /System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript

Model: PowerMac10,2, BootROM 4.9.4f1, 1 processors, PowerPC G4 (1.5), 1.5 GHz, 512 MB
Graphics: ATI Radeon 9200, ATY,RV280, AGP, 64 MB
Memory Module: DIMM0/J11, 512 MB, DDR SDRAM, PC3200U-30330
AirPort: AirPort Extreme, 405.1 (3.90.34.0.p18)
Bluetooth: Version 1.7.14f14, 2 service, 0 devices, 1 incoming serial ports
Network Service: Built-in Ethernet, Ethernet, en0
PCI Card: pci106b,4318, sppci_othernetwork, SLOT-B
Parallel ATA Device: ST9808211A, 74.53 GB
Parallel ATA Device: MATSHITADVD-R UJ-845
USB Device: OEM Mass Storage, OEM, Up to 480 Mb/sec, 500 mA
USB Device: Bluetooth HCI, Up to 12 Mb/sec, 500 mA
USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA
USB Device: Apple Optical USB Mouse, Primax Electronics, Up to 1.5 Mb/sec, 100 mA
USB Device: USB Mass Storage Device, Up to 12 Mb/sec, 100 mA
USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mA
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.