Re: How do ?I transfer variables between Apps, please?
Re: How do ?I transfer variables between Apps, please?
- Subject: Re: How do ?I transfer variables between Apps, please?
- From: Brian Christmas <email@hidden>
- Date: Mon, 09 Feb 2015 14:07:04 +1100
Thanks Shane. Using write/read is easy enough.
Before I continue with splitting my app up, is there any way you can tell from this attached crash log if my problem lies elsewhere?
I had thought I’d solved the crashing question by methodical adding ‘my’ statements to every property variable (the lack of which guaranteed a crash), but I’m sill getting crashes on thread zero.
Regards
Brian.
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8cb1044f objc_release + 15
1 libobjc.A.dylib 0x00007fff8cb0ee8f (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 575
2 com.apple.applescript 0x000000010ad92fc9 autoreleasepool::~autoreleasepool() + 221
3 com.apple.applescript 0x000000010ad70958 GCCollect(unsigned long) + 1047
4 com.apple.applescript 0x000000010ad7024d GCArea_AllocateBottom(unsigned long) + 30
5 com.apple.applescript 0x000000010ad70e3a GCMakeVector_(unsigned long) + 23
6 com.apple.applescript 0x000000010adb4a93 UASPushValue(TUASClassIndex, long) + 30
7 com.apple.applescript 0x000000010ad8ec7c UASExecute1() + 373
8 com.apple.applescript 0x000000010ad5ff2a ASExecuteEvent(AEDesc const*, unsigned int, int, unsigned int*) + 680
9 com.apple.applescript 0x000000010ad57aad AppleScriptComponent + 737
10 com.apple.openscripting 0x00007fff92995365 OSAExecuteEvent + 63
11 com.apple.AppleScriptObjC 0x00007fff86073f66 +[BAObjectProto invokeScriptHandler:forObject:inComponentInstance:args:error:] + 234
12 com.apple.AppleScriptObjC 0x00007fff86074222 -[BAObjectProto invokeScriptHandler:args:error:] + 111
13 com.apple.AppleScriptObjC 0x00007fff86075026 -[BAObjectProto forwardInvocation:] + 389
14 com.apple.CoreFoundation 0x00007fff88dc98a6 ___forwarding___ + 518
15 com.apple.CoreFoundation 0x00007fff88dc9618 _CF_forwarding_prep_0 + 120
16 com.apple.CoreFoundation 0x00007fff88d583cc __invoking___ + 140
17 com.apple.CoreFoundation 0x00007fff88d58222 -[NSInvocation invoke] + 290
18 com.apple.AppleScriptObjC 0x00007fff8607a701 Invoke + 2234
19 com.apple.AppleScriptObjC 0x00007fff8607afd1 BAHandleEventInternal + 1279
20 com.apple.AppleScriptObjC 0x00007fff8607b686 BASendProc + 46
21 com.apple.applescript 0x000000010ad77b9b ComponentSend(AEDesc const*, AEDesc*, int, int) + 441
22 com.apple.applescript 0x000000010ad8a39c TUASApplication::Send(TStackFrame_UASRemoteSend*, AEDesc*, AEDesc*, unsigned char, unsigned char, unsigned char) + 1768
23 com.apple.applescript 0x000000010adac655 UASRemoteSend(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*) + 582
24 com.apple.applescript 0x000000010ad8ec7c UASExecute1() + 373
25 com.apple.applescript 0x000000010ad5ff2a ASExecuteEvent(AEDesc const*, unsigned int, int, unsigned int*) + 680
26 com.apple.applescript 0x000000010ad57aad AppleScriptComponent + 737
27 com.apple.openscripting 0x00007fff92995365 OSAExecuteEvent + 63
28 com.apple.AppleScriptObjC 0x00007fff86073f66 +[BAObjectProto invokeScriptHandler:forObject:inComponentInstance:args:error:] + 234
29 com.apple.AppleScriptObjC 0x00007fff86074222 -[BAObjectProto invokeScriptHandler:args:error:] + 111
30 com.apple.AppleScriptObjC 0x00007fff86075026 -[BAObjectProto forwardInvocation:] + 389
31 com.apple.CoreFoundation 0x00007fff88dc98a6 ___forwarding___ + 518
32 com.apple.CoreFoundation 0x00007fff88dc9618 _CF_forwarding_prep_0 + 120
33 com.apple.CoreFoundation 0x00007fff88d583cc __invoking___ + 140
34 com.apple.CoreFoundation 0x00007fff88d58222 -[NSInvocation invoke] + 290
35 com.apple.AppleScriptObjC 0x00007fff8607a701 Invoke + 2234
36 com.apple.AppleScriptObjC 0x00007fff8607afd1 BAHandleEventInternal + 1279
37 com.apple.AppleScriptObjC 0x00007fff8607b686 BASendProc + 46
38 com.apple.applescript 0x000000010ad77b9b ComponentSend(AEDesc const*, AEDesc*, int, int) + 441
39 com.apple.applescript 0x000000010ad8a39c TUASApplication::Send(TStackFrame_UASRemoteSend*, AEDesc*, AEDesc*, unsigned char, unsigned char, unsigned char) + 1768
40 com.apple.applescript 0x000000010adac655 UASRemoteSend(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*) + 582
41 com.apple.applescript 0x000000010ad8ec7c UASExecute1() + 373
42 com.apple.applescript 0x000000010ad5ff2a ASExecuteEvent(AEDesc const*, unsigned int, int, unsigned int*) + 680
43 com.apple.applescript 0x000000010ad57aad AppleScriptComponent + 737
44 com.apple.openscripting 0x00007fff92995365 OSAExecuteEvent + 63
45 com.apple.AppleScriptObjC 0x00007fff86073f66 +[BAObjectProto invokeScriptHandler:forObject:inComponentInstance:args:error:] + 234
46 com.apple.AppleScriptObjC 0x00007fff86074222 -[BAObjectProto invokeScriptHandler:args:error:] + 111
47 com.apple.AppleScriptObjC 0x00007fff86075026 -[BAObjectProto forwardInvocation:] + 389
48 com.apple.CoreFoundation 0x00007fff88dc98a6 ___forwarding___ + 518
49 com.apple.CoreFoundation 0x00007fff88dc9618 _CF_forwarding_prep_0 + 120
50 com.apple.CoreFoundation 0x00007fff88d583cc __invoking___ + 140
51 com.apple.CoreFoundation 0x00007fff88d58222 -[NSInvocation invoke] + 290
52 com.apple.AppleScriptObjC 0x00007fff8607a701 Invoke + 2234
53 com.apple.AppleScriptObjC 0x00007fff8607afd1 BAHandleEventInternal + 1279
54 com.apple.AppleScriptObjC 0x00007fff8607b686 BASendProc + 46
55 com.apple.applescript 0x000000010ad77b9b ComponentSend(AEDesc const*, AEDesc*, int, int) + 441
56 com.apple.applescript 0x000000010ad8a39c TUASApplication::Send(TStackFrame_UASRemoteSend*, AEDesc*, AEDesc*, unsigned char, unsigned char, unsigned char) + 1768
57 com.apple.applescript 0x000000010adac655 UASRemoteSend(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*) + 582
58 com.apple.applescript 0x000000010ad8ec7c UASExecute1() + 373
59 com.apple.applescript 0x000000010ad5ff2a ASExecuteEvent(AEDesc const*, unsigned int, int, unsigned int*) + 680
60 com.apple.applescript 0x000000010ad57aad AppleScriptComponent + 737
61 com.apple.openscripting 0x00007fff92995365 OSAExecuteEvent + 63
62 com.apple.AppleScriptObjC 0x00007fff86073f66 +[BAObjectProto invokeScriptHandler:forObject:inComponentInstance:args:error:] + 234
63 com.apple.AppleScriptObjC 0x00007fff86074222 -[BAObjectProto invokeScriptHandler:args:error:] + 111
64 com.apple.AppleScriptObjC 0x00007fff86075026 -[BAObjectProto forwardInvocation:] + 389
65 com.apple.CoreFoundation 0x00007fff88dc98a6 ___forwarding___ + 518
66 com.apple.CoreFoundation 0x00007fff88dc9618 _CF_forwarding_prep_0 + 120
67 com.apple.CoreFoundation 0x00007fff88e3bcdc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
68 com.apple.CoreFoundation 0x00007fff88d2d244 _CFXNotificationPost + 3140
69 com.apple.Foundation 0x00007fff8a9b9c31 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
70 com.apple.AppKit 0x00007fff881e98f7 -[NSApplication finishLaunching] + 440
71 com.apple.AppKit 0x00007fff881e93c1 -[NSApplication run] + 128
72 com.apple.AppKit 0x00007fff881d4a14 NSApplicationMain + 1832
73 MeSelf-Software.Mail-Manager 0x0000000108baaf12 main + 98 (main.m:14)
74 libdyld.dylib 0x00007fff8f82f5c9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8b86d232 kevent64 + 10
1 libdispatch.dylib 0x00007fff86b3aa6a _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x00007fff8b86c94a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff913a240d start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8b86c94a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff913a240d start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8b86c94a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff913a240d start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0xbadd71ef8e1bbead rbx: 0x00007fda2a88c010 rcx: 0x00007fda2a88cda0 rdx: 0x00000000000062cb
rdi: 0x0000618000489ec0 rsi: 0x0000000000000008 rbp: 0x00007fff570530a0 rsp: 0x00007fff57052c58
r8: 0x0000000000000200 r9: 0xbaddc0dedeadbead r10: 0x00007fda2a9037e0 r11: 0x0000000000000005
r12: 0xa3a3a3a3a3a3a3a3 r13: 0x00007fff7591b070 r14: 0x00007fda2a88c818 r15: 0x00007fda2a88c000
rip: 0x00007fff8cb1044f rfl: 0x0000000000010246 cr2: 0x000060800045fd40
Logical CPU: 6
Error Code: 0x00000000
Trap Number: 13
On 9 Feb 2015, at 1:06 pm, Shane Stanley <email@hidden> wrote:
> On 9 Feb 2015, at 12:45 pm, Brian Christmas <email@hidden> wrote:
>>
>> My problem is, how do I transfer variables between app?
>
> You can't. The best you can do is make the app's scriptable and do it that way, but I doubt that makes sense in your case.
>
> Write/read files is probably your best option. But ideally you'd break up your app in a way such that you need to pass as few values as possible. If you're having to pass a zillion variables, you're probably not gaining much advantage.
>
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden