Re: A Frozen Script Editor
Re: A Frozen Script Editor
- Subject: Re: A Frozen Script Editor
- From: "Robert W. Young" <email@hidden>
- Date: Fri, 22 Jan 2016 20:17:39 +0000
- Thread-topic: A Frozen Script Editor
Subject: A Frozen Script Editor
Suddenly I cannot use the Script Editor. I was working on a script - nothing special, just a script that would combine 3 other (functioning) scripts. I had 4 script windows open. Suddenly the size of the font of the front most script increased substantially, and the Editor froze (with spinning colored beach ball). This had happened a couple of times before, but in each instance, I'd use a force quit. When I would relaunch, the same scripts would open along with the Script Editor, all was fine and I could continue working. This last time (yesterday) that didn't work. Every time I open the Script Editor since, the 4 scripts open with it, but it is still hung up with the spinning beach ball. I tried shutting down the computer and rebooting, but it doesn't help. What can I do to end this insanity and get back to scripting? What is the cause and how can I prevent it?
Thanks in advance for help. RWY
From: RJay Hansen <email@hidden>
To: "Robert W. Young" <email@hidden>
I would try trashing ScriptEditor’s preferences. In ~/Library/Preferences/com.apple.ScriptEditor.plist
RJay
I tried trashing ScriptEditor's preferences in the library preferences folder in ~/Library/Preference/com.apple.ScriptEditor.plist but I could not find it. I found a file called "com.apple.ScriptEditor2" in an old Microsoft Office 2008 folder. It could only be opened with xcode. I trashed it but that accomplished nothing. Any other suggestions from anyone? How have I managed to screw up ScriptEditor so royally? (Incidentally, I have many scripts - saved as scripts and not saved as applications - in the scroll on the menu bar, and they all run perfectly fine when I click on them.) RWY
________________________________________
From: applescript-users-bounces+rw_young_1=email@hidden <applescript-users-bounces+rw_young_1=email@hidden> on behalf of email@hidden <email@hidden>
Sent: Friday, January 22, 2016 9:45 AM
To: email@hidden
Subject: AppleScript-Users Digest, Vol 13, Issue 41
Send AppleScript-Users mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.apple.com/mailman/listinfo/applescript-users
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of AppleScript-Users digest..."
Today's Topics:
1. Re: ApplescriptObjC Drag and Drop Table (Shane Stanley)
2. Re: Script not working in InDesign CC 2015 (Shane Stanley)
3. Re: ApplescriptObjC Drag and Drop Table (Stockly, Ed)
4. Re: ApplescriptObjC Drag and Drop Table (Shane Stanley)
5. Re: ApplescriptObjC Drag and Drop Table (Stockly, Ed)
6. Re: Security Update [Was: Re: Script Library Search Order]
(Chris Page)
7. Re: Script Library Search Order changed starting in 10.11.3
(Chris Page)
8. Re: Script Library Search Order changed starting in 10.11.3
(Shane Stanley)
9. A Frozen Script Editor (Robert W. Young)
10. Re: A Frozen Script Editor (RJay Hansen)
----------------------------------------------------------------------
Message: 1
Date: Fri, 22 Jan 2016 10:06:57 +1100
From: Shane Stanley <email@hidden>
To: AS users <email@hidden>
Subject: Re: ApplescriptObjC Drag and Drop Table
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
On 22 Jan 2016, at 4:58 AM, Simon, Garry <email@hidden> wrote:
>
> Hello, I have a question concerning ApplescriptObjC that is either impossible to answer, or I am really bad at finding existing solutions. Here's what I need help with:
> 1. I need to create a table that will accept files dropped onto it, and list them in the table.
> 2. I need the ability to reorder files in the table.
> 3. I need the files to be acted upon by a different function when a button is pressed, and the files would need to be acted upon in the order that they are listed in the table. in other words, the file paths would need to be copied out of the table in the order that they are listed so that I could do some additional work with them.
Is that all you need? I mean, are you talking a table with a single column?
>
> Here's what I've found so far by following Shane Stanley's "ApplescriptObjC Explored" books and by searching the internet:
> 1. I've found how to create a table and populate it when an app is launched.
> 2. I've found that it's possible to reorder the items listed in a table.
> 3. I've found it's possible to drag entries from one table to another.
> 4. I've found that selected items in a table can be acted upon.
>
> Here's what the internet turned up:
> 1. Questions very similar to mine have been asked many times.
> 2. Many of the questions remain unanswered.
> 3. When they are answered, the answers are incomplete, and even though they fill in the missing pieces for the people who originally asked the questions, they don't contain enough information for me to solve my problem.
The problem is that what you're asking for varies from complex to very complex, depending on the finer details. Tables are complicated things, and there's no one simple solution -- there are different ways of setting up tables, and different ways of dealing with them. It's become a bit more difficult because the preferred way of building tables has changed. (I've spent the past couple of weeks working on a table-based project in Objective-C, and believe me, there are plenty of wrinkles.)
Having said that, there are threads at macscripter.net that have covered at least reordering.
>
> I'm not a computer programmer, just a corporate employee who learned Applescript, then FaceSpan, then with some difficulty Applescript Studio, and now with a great deal of difficulty ApplescriptObjC. It would be awesome if someone could come up with a step by step guide to accomplishing what I outlined above. I think many people would benefit.
It would be awesome, but I fear it's unlikely to happen. It was on my list of things to do in the next edition of my now-abandoned book.
Having said all that, can you describe your project in more detail, and what you have tried? We might be able to help here.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
------------------------------
Message: 2
Date: Fri, 22 Jan 2016 10:08:53 +1100
From: Shane Stanley <email@hidden>
To: AS users <email@hidden>
Subject: Re: Script not working in InDesign CC 2015
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
On 20 Jan 2016, at 3:37 AM, Bert Groeneveld <email@hidden> wrote:
>
> I have a script that works fine in InDesign CS6. I need to convert the script to be compatible with InDesign CC 2015 (2015.2 release). All I did was replace the line:
>
> tell application "Adobe InDesign CS6"
>
> with line
>
> tell application "Adobe InDesign CC 2015"
>
> The script compiles as it should. Unfortunately every time I run it, InDesign CC 2015 quits unexpectedly. Can anyone tell what goes wrong?
I just updated to 2015.2, and in my (admittedly simple) test, your script works fine. So I fear you need to try to narrow down what particular element on the page in question is causing the problem.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
------------------------------
Message: 3
Date: Thu, 21 Jan 2016 23:17:12 +0000
From: "Stockly, Ed" <email@hidden>
To: Shane Stanley <email@hidden>, AS users
<email@hidden>
Subject: Re: ApplescriptObjC Drag and Drop Table
Message-ID: <D2C6A6A7.3385Cíemail@hidden>
Content-Type: text/plain; charset=utf-8
I would love to see something like this in AppleScript, preferable as an
OSAX (display table) or as a standalone.
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Tabl
eView/Introduction/Introduction.html
------------------------------
Message: 4
Date: Fri, 22 Jan 2016 10:22:14 +1100
From: Shane Stanley <email@hidden>
To: AS users <email@hidden>
Subject: Re: ApplescriptObjC Drag and Drop Table
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
On 22 Jan 2016, at 10:17 AM, Stockly, Ed <email@hidden> wrote:
>
> I would love to see something like this in AppleScript, preferable as an
> OSAX (display table) or as a standalone.
OSAX are out of favor. Would you settle for a script library?
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
------------------------------
Message: 5
Date: Thu, 21 Jan 2016 23:37:45 +0000
From: "Stockly, Ed" <email@hidden>
To: AS users <email@hidden>
Subject: Re: ApplescriptObjC Drag and Drop Table
Message-ID: <D2C6AB96.3386Díemail@hidden>
Content-Type: text/plain; charset=utf-8
>OSAX are out of favor. Would you settle for a script library?
Yes.
------------------------------
Message: 6
Date: Thu, 21 Jan 2016 18:02:15 -0800
From: Chris Page <email@hidden>
To: has <email@hidden>
Cc: email@hidden
Subject: Re: Security Update [Was: Re: Script Library Search Order]
Message-ID: <email@hidden>
Content-Type: text/plain; charset=utf-8
> On Jan 20, 2016, at 5:58 AM, has <email@hidden> wrote:
>
> Martin Orpen wrote:
>
>> Today’s Security Update:
>>
>> OSA Scripts
>> Available for: OS X El Capitan v10.11 to v10.11.2
>> Impact: A quarantined application may be able to override OSA script
>> libraries installed by the user
>> Description: An issue existed when searching for scripting
>> libraries. This issue was addressed through improved search order and
>> quarantine checks.
>> CVE-ID
>> CVE-2016-1729 : an anonymous researcher
>
> [The System/Security Update] just means user-installed libraries can now accidentally mask library-supplied ones...
Was “library-supplied” supposed to be “application-supplied”?
> ...plus searching every .app bundle _automatically_ makes the initialization process needlessly slow/stale.
Have you observed a specific performance issue with library lookup on 10.11-10.11.2 that you can report? There are several strategies in place to make it efficient.
If so, have you compared the performance with the 10.11.3 version? It should be even faster than before, so if there was a performance issue it should have been resolved.
--
Chris Page
The other, other AppleScript Chris
------------------------------
Message: 7
Date: Thu, 21 Jan 2016 18:15:33 -0800
From: Chris Page <email@hidden>
To: Martin Orpen <email@hidden>
Cc: AppleScript <email@hidden>
Subject: Re: Script Library Search Order changed starting in 10.11.3
Message-ID: <email@hidden>
Content-Type: text/plain; charset=utf-8
Starting in 10.11.3 the new script-library search-domain order is:
1. The bundle of the script that references the library.
2. The bundle of the application process that is running the script that references the library.
3. The OSA_LIBRARY_PATH environment variable.
4. The user domain: ~/Library
5. The local domain: /Library
6. The network domain: /Network/Library
7. The system domain: /System/Library
8. Application bundles: ./Contents/Library
Application bundles are now searched last. That's the only change to the order.
--
Chris Page
The other, other AppleScript Chris
> On Jan 19, 2016, at 5:04 PM, Martin Orpen <email@hidden> wrote:
>
> On 14 Jan 2016, at 04:12, Chris Page <email@hidden> wrote:
>>
>> As mentioned recently, the Script Library search order is incorrectly documented in the current AppleScript Language Guide. The order is:
>>
>> 1. The bundle of the script that references the library.
>> 2. The bundle of the application process that is running the script that references the library.
>> 3. The OSA_LIBRARY_PATH environment variable.
>> 4. The user domain: ~/Library
>> 5. Application bundles: ./Contents/Library
>> 6. The local domain: /Library
>> 7. The network domain: /Network/Library
>> 8. The system domain: /System/Library
>
> Today’s Security Update:
>
> OSA Scripts
> Available for: OS X El Capitan v10.11 to v10.11.2
> Impact: A quarantined application may be able to override OSA script
> libraries installed by the user
> Description: An issue existed when searching for scripting
> libraries. This issue was addressed through improved search order and
> quarantine checks.
> CVE-ID
> CVE-2016-1729 : an anonymous researcher
------------------------------
Message: 8
Date: Fri, 22 Jan 2016 13:30:11 +1100
From: Shane Stanley <email@hidden>
To: AS users <email@hidden>
Subject: Re: Script Library Search Order changed starting in 10.11.3
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
On 22 Jan 2016, at 1:15 PM, Chris Page <email@hidden> wrote:
>
> Application bundles are now searched last.
Thank you!
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
------------------------------
Message: 9
Date: Fri, 22 Jan 2016 14:24:22 +0000
From: "Robert W. Young" <email@hidden>
To: "email@hidden"
<email@hidden>
Subject: A Frozen Script Editor
Message-ID:
<email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Suddenly I cannot use the Script Editor. I was working on a script - nothing special, just a script that would combine 3 other (functioning) scripts. I had 4 script windows open. Suddenly the size of the font of the front most script increased substantially, and the Editor froze (with spinning colored beach ball). This had happened a couple of times before, but in each instance, I'd use a force quit. When I would relaunch, the same scripts would open along with the Script Editor, all was fine and I could continue working. This last time (yesterday) that didn't work. Every time I open the Script Editor since, the 4 scripts open with it, but it is still hung up with the spinning beach ball. I tried shutting down the computer and rebooting, but it doesn't help. What can I do to end this insanity and get back to scripting? What is the cause and how can I prevent it?
Thanks in advance for help. RWY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20160122/b10b8475/attachment.html>
------------------------------
Message: 10
Date: Fri, 22 Jan 2016 08:45:47 -0600
From: RJay Hansen <email@hidden>
To: "Robert W. Young" <email@hidden>
Cc: "email@hidden"
<email@hidden>
Subject: Re: A Frozen Script Editor
Message-ID: <email@hidden>
Content-Type: text/plain; charset="windows-1252"
I would try trashing ScriptEditor’s preferences. In ~/Library/Preferences/com.apple.ScriptEditor.plist
RJay
> On Jan 22, 2016, at 8:24 AM, Robert W. Young <email@hidden> wrote:
>
>
> Suddenly I cannot use the Script Editor. I was working on a script - nothing special, just a script that would combine 3 other (functioning) scripts. I had 4 script windows open. Suddenly the size of the font of the front most script increased substantially, and the Editor froze (with spinning colored beach ball). This had happened a couple of times before, but in each instance, I'd use a force quit. When I would relaunch, the same scripts would open along with the Script Editor, all was fine and I could continue working. This last time (yesterday) that didn't work. Every time I open the Script Editor since, the 4 scripts open with it, but it is still hung up with the spinning beach ball. I tried shutting down the computer and rebooting, but it doesn't help. What can I do to end this insanity and get back to scripting? What is the cause and how can I prevent it?
> Thanks in advance for help. RWY
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden <mailto:email@hidden>)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users <http://lists.apple.com/archives/applescript-users>
>
> This email sent to email@hidden <mailto:email@hidden>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20160122/8b8c9175/attachment.html>
------------------------------
_______________________________________________
AppleScript-Users mailing list
email@hidden
https://lists.apple.com/mailman/listinfo/applescript-users
End of AppleScript-Users Digest, Vol 13, Issue 41
*************************************************
_______________________________________________
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