Re: Is there a problem with FordEvents and latest Sierra????
Re: Is there a problem with FordEvents and latest Sierra????
- Subject: Re: Is there a problem with FordEvents and latest Sierra????
- From: Brian Christmas <email@hidden>
- Date: Sat, 19 Aug 2017 13:25:52 +1000
G’day all, but particularly Shane, whose been helping.
I’m trying to determine the property names of images in columns that contain
images, such as plainCircle, greenCircle, & redCircle, from an Array Controller.
Getting the information from the columns is beyond me, and I’m in the realm of
‘guessing’ now. The columns are ‘Started’, & ‘SENT’.
I need to know which image, particularly the image property, is in each column.
Part of the crash log that relates to the column is…
Started = "<NSImage 0x61800007fec0 Name=PlainCircle Size={11.52, 11.52}
Reps=(\n \"NSBitmapImageRep 0x6180000aafe0 Size={11.52, 11.52}
ColorSpace=sRGB IEC61966-2.1 colorspace BPS=8 BPP=32 Pixels=24x24 Alpha=YES
Planar=NO Format=2 CurrentBacking=<CGImageRef: 0x6180001c4560>
CGImageSource=0x618000032580\"\n)>";
I’m presuming ‘Started’ contains exactly what’s in the log, but reading it, or
reading and converting it to text, is beyond me.
I’ve searched the net trying to find how to get the name of an NSimage, in an
Array Controller, but I think it’s another case of ’you’ll find what you’re
looking for, if you start by typing the correct answer into the search box’.
Any advice from anyone, please???
Regards
Santa
property redCircle : missing value
property greenCircle : missing value
property plainCircle : missing value
on saveTheGeneralData()
say "Saving"
my fordEvent()
#
# Set the actual email addresses
#
set p to 1
try
set jobINArray to jobArrayController's
arrangedObjects() as list
set p to 1.1
set newArray to {}
set p to 1.2
repeat with eachLine in jobINArray
set p to 1.3
# set temp to eachLine's Started -- Fails
after 1.4
# set temp to eachLine's Started as text --
Fails
# set temp to (eachLine's Started) as text --
Fails
set temp to eachLine's Started's name -- Fails
set p to 1.4
if temp contains "PlainCircle" then set temp2
to "plainCircle"
set p to 1.5
if temp contains "GreenCircle" then set temp2
to "greenCircle"
set p to 1.6
tell eachLine to setObject:temp2 forKey:Started
set p to 1.4
tell eachLine to setObject:((eachLine's SENT's
name) as text) forKey:SENT — Fails
set p to 1.5
set end of newarrray to eachLine
set p to 1.6
end repeat
set p to 1.7
set jobINArray to newArray
on error errmsg number errnum
say "error 1"
set jobINArray to {}
#if errnum is not in {-1700, -1728, -10000} then
tell application "System Events" to display dialog
("saveTheGeneralData 1 " & errmsg & " " & errnum & " p = " & p as text) giving
up after 20
#end if
end try
> Then you need to figure it out. This isn't something you just look up -- it's
> a decision, and one you have to make. Stop looking for code, and think about
> what needs to be done.
>
>> I imagine I’d convert the variables to text, and reset on reading the
>> .plist, but am following your suggestion not to guess what I’m doing.
>
> That's not guessing -- that's thinking about things.
>
> --
> Shane Stanley <email@hidden <mailto:email@hidden>>
> <www.macosxautomation.com/applescript/apps/
> <http://www.macosxautomation.com/applescript/apps/>>, <latenightsw.com
> <http://latenightsw.com/>>
>
>
> _______________________________________________
> 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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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