Re: AppleScript-Users Digest, Vol 9, Issue 180
Re: AppleScript-Users Digest, Vol 9, Issue 180
- Subject: Re: AppleScript-Users Digest, Vol 9, Issue 180
- From: "email@hidden" <email@hidden>
- Date: Sun, 27 May 2012 05:22:07 +0800
发自我的 iPhone
在 Apr 26, 2012,3:00 AM,email@hidden 写道:
> 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: property (Thomas Fischer)
> 2. Re: Safari Tab Pick-List (Christopher Stone)
> 3. Re: Safari Tab Pick-List (Alex Zavatone)
> 4. Re: Safari Tab Pick-List (Emmanuel LEVY)
> 5. Re: Safari Tab Pick-List (Alex Zavatone)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 25 Apr 2012 16:50:12 +0200
> From: Thomas Fischer <email@hidden>
> To: Applescript Users List <email@hidden>
> Subject: Re: property
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hi Javi,
>
> I suppose you should set the properties to empty ("") and set them when they are needed; after that they are remembered by the application or script.
>
> Best
> Thomas
>
> Am 24.04.2012 um 08:46 schrieb Javi Pérez:
>
>> Hello,
>>
>> I set some properties at the header of my script. All is fine but when I copy the file to other computer, those values are still there and it should start as new instead.
>> How can I clean up the properties for distribute the script?
>>
>>
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 25 Apr 2012 12:33:15 -0500
> From: Christopher Stone <email@hidden>
> To: Applescript Users List <email@hidden>
> Subject: Re: Safari Tab Pick-List
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> On Apr 25, 2012, at 08:07, Alex Zavatone wrote:
>> What would rock, (I'll do it if I have time - ya, time, what is that) would be to have a way to close a Safari window when selecting it.
>>
>> i used to end up with n+1 windows and up to 125 tabs, but on today's Safari, that's 4 GB of RAM used up, so sometimes, I just want to select a window from the menu and close it.
> ______________________________________________________________________
>
> Hey Alex,
>
> I've been known to have 300+ tabs open on occasion when I get lost in research. It gets messy, and I have to kill the Web Process to keep the memory use reasonable.
>
> So. You have multiple windows open, and you want to close one or more with ease.
>
> Will these windows potentially have more than one tab in them?
>
> Do you want to close the window with all tabs?
>
> Or do you want to be able to close tabs on an individual basis?
>
> Either way it should be reasonably easy to do.
>
> --
> Best Regards,
> Chris
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20120425/2db16be9/attachment.html>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 25 Apr 2012 14:04:38 -0400
> From: Alex Zavatone <email@hidden>
> To: Christopher Stone <email@hidden>
> Cc: Applescript Users List <email@hidden>
> Subject: Re: Safari Tab Pick-List
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
>
> On Apr 25, 2012, at 1:33 PM, Christopher Stone wrote:
>
>> On Apr 25, 2012, at 08:07, Alex Zavatone wrote:
>>> What would rock, (I'll do it if I have time - ya, time, what is that) would be to have a way to close a Safari window when selecting it.
>>>
>>> i used to end up with n+1 windows and up to 125 tabs, but on today's Safari, that's 4 GB of RAM used up, so sometimes, I just want to select a window from the menu and close it.
>> ______________________________________________________________________
>>
>> Hey Alex,
>>
>> I've been known to have 300+ tabs open on occasion when I get lost in research. It gets messy, and I have to kill the Web Process to keep the memory use reasonable.
>
> Ya, I remember when I could have 125 open on a 2 GB G5. Safari certainly isn't what it used to be. It's a horrible memory hog these days mostly due to JS leaks or sloppy item allocation/management.
>
> I've had to often disable Javascript from the Safari Develop menu and switching to another browser (I require a location field and a search field) is too clunky for me to flow right now.
>
> Often, I've had to disable everything, caches, images, style, JavaScript, just to get RAM back, BUT there also is another culprit.
>
> Your Dashboard - Weather web apps in particular. Make sure to kill the dock and/or Dashboard clients. I did this after my quad core i7 Mac with 16 GB of RAM was getting pokey and BLAM, it zipped right up. There are lots of widgets that run web sessions and this contributes to the overhead - mostly I've seen these end up bogging down Safari's run event loop (if that's the right terminology) - or so I think.
>
> So, recently, I've also started to use this terminal command: purge ram
>
> Then wait while it tries to free up stuff.
>
> But...
>
> I've also resorted to pausing Safari at times and explicitly resuming it ala the Terminal and that works like a CHARM.
> To pause:
> Get Safari's PID#
> Issue a kill to it with a SIGSTOP
> To resume:
> Issue a kill to it with a SIGCONT
>
> Like so:
> Pause:
> kill -SIGSTOP 53944
>
> Resume:
> kill -SIGCONT 53944
>
> One script that you can help on is a one that automatically pauses Safari (as above) when it moves to the background and resumes it when it moves to the front.
>
> Just think of all that JavaScript that's not operating.
>
> I've seen Safari or maybe it's just webkit that's running that seems to have its main run event loop just bogged down waiting and waiting. Even if Safari is restricted to one core, it craters the performance of the whole machine.
>
>> So. You have multiple windows open, and you want to close one or more with ease.
>>
>> Will these windows potentially have more than one tab in them?
>
> Yes. Kill them. Kill them ALL!
>
>> Do you want to close the window with all tabs?
>
> Yes. It should be murdered in cold blood.
>
>> Or do you want to be able to close tabs on an individual basis?
>
> Just the window with all the tabs for the moment.
>
>> Either way it should be reasonably easy to do
>
> I almost had time on Saturday, and registered as a Safari Developer (free), but was on a 13 hour work stretch. We could do it in either AppleScript or JavaScript. I'm just time restricted at the moment.
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20120425/ccbe73d7/attachment.html>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 25 Apr 2012 20:19:53 +0200
> From: Emmanuel LEVY <email@hidden>
> To: AS Users Lisit <email@hidden>
> Subject: Re: Safari Tab Pick-List
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On Apr 25, 2012, at 8:04 PM, Alex Zavatone wrote:
>
>> [...] We could do it in either AppleScript or JavaScript.
>
> Must be obvious for you: how d'you close a window in Javascript?
>
> Emmanuel
>
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 25 Apr 2012 14:33:21 -0400
> From: Alex Zavatone <email@hidden>
> To: Emmanuel LEVY <email@hidden>
> Cc: AS Users Lisit <email@hidden>
> Subject: Re: Safari Tab Pick-List
> Message-ID: <email@hidden>
> Content-Type: text/plain; CHARSET=US-ASCII
>
> No idea. It's in the Safari SDK though. I'd just look it up,but you do need to know how to reference it.
>
> Register as a a Safari Developer at developer.apple.com, get your cert set up (easy) and start reading the Getting Started docs, then download some samples and start playing.
>
> On Apr 25, 2012, at 2:19 PM, Emmanuel LEVY wrote:
>
>> On Apr 25, 2012, at 8:04 PM, Alex Zavatone wrote:
>>
>>> [...] We could do it in either AppleScript or JavaScript.
>>
>> Must be obvious for you: how d'you close a window in Javascript?
>>
>> Emmanuel
>>
>> _______________________________________________
>> 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
>
>
>
> ------------------------------
>
> _______________________________________________
> AppleScript-Users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/applescript-users
>
> End of AppleScript-Users Digest, Vol 9, Issue 180
> *************************************************
_______________________________________________
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