stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


An improved 'Combine Windows' AppleScript for Safari







An improved 'Combine Windows'
AppleScript for Safari

An improved 'Combine Windows'
AppleScript for Safari
04/09/2004 03:59 PM

The "Combine Windows" Safari script (available on the Safari AppleScript page) takes all the open browser windows and consolidates them into one tabbed window. The following script gathers up all tabs in all browser windows and combines them into one window




This is a GrokNews Entry: (what is grok?)





Similar Items

An improved 'Combine Windows' AppleScript for Safari

Grok Headline matches for An improved 'Combine Windows' AppleScript for Safari

An AppleScript to toggle JavaScript in
Safari


An AppleScript to toggle JavaScript in
Safari
05/20/2004 11:45 AM
Being a satisfied Safari user, I've never seen the need to disable JavaScript in my regular browsing; but this morning I came across a need to test several sites with JavaScript both enabled and disabled. Imagine my surprise ...

Apple: Safari, AppleScript and
JavaScript


Apple: Safari, AppleScript and
JavaScript
10/29/2003 02:19 AM
As noted yesterday, the latest version of Safari includes the 'do JavaScript' command in its AppleScript dictionary. By using the command, users can create AppleScript scripts that interact with the Safari JavaScript DOM (Document Object Model). Apple provides sample scripts along with links to Safari Developer FAQ, Safari JavaScript DOM Part 1 and Safari JavaScript DOM Part 2.

10.3: AppleScript and Safari clickable
link example


10.3: AppleScript and Safari clickable
link example
10/29/2003 12:32 PM
Just noticed this today while perusing the AppleScript area at Apple. I was looking for GUI Scripting to do download and install, but they seem to indicate that GUI Scripting is installed by default in Panther. One thing that...

An AppleScript to launch Safari and open
a given site


An AppleScript to launch Safari and open
a given site
07/23/2004 11:38 AM
I have been plagued with a bug, for some time and for many verisons of Safari, that for one reason or another insists on resetting my Home Page to the "factory default settings" every so often. Just often enough to be really ...

Open new Safari window with an
AppleScript application


Open new Safari window with an
AppleScript application
12/10/2003 11:28 AM
The Safari dock icon behavior has always annoyed me. If you have no windows open and click on it, it will open a new Safari window. Great. However, if you have other windows open or minimized to the dock, it will just rest...

An AppleScript to email Safari URLs with
titles via Mail


An AppleScript to email Safari URLs with
titles via Mail
03/21/2003 10:17 AM
I've been trying to use Mail/Safari rather than Mozilla. One of the (many) things I miss is the ability to select "send link" when viewing a page, to have a new message created with the page title as the subject and the URL ...

Potential Safari/HelpViewer security
vulnerability; AppleScript fix


Potential Safari/HelpViewer security
vulnerability; AppleScript fix
05/17/2004 08:53 PM
The problem arises when this automatic opening behavior is combined with Apple HelpViewer's ability to automatically run programs via the "help:" protocol. A maliciously intended help file could therefore locate and launch a threatening file from within the mounted disk image.

AppleScript for removing performance
bottlenecks in Safari (deletes
potentially problematic .plist files)


AppleScript for removing performance
bottlenecks in Safari (deletes
potentially problematic .plist files)
06/22/2005 02:39 AM
MacFixIt readers John Boyden and Tom X have put together a small AppleScript that will delete the QuickTime .plist file in question, as well as a few other preference files that may cause issues with Safari from time to time.

Messman: 'BrainShare doesn't do Windows'


Messman: 'BrainShare doesn't do Windows' 09/23/2004 04:35 AM
It was déjà vu all over again at Novell's recently concluded BrainShare:Europe conference in Barcelona. If you closed your eyes you might think it was the legendary Novell CEO Ray Noorda speaking instead of the current (and usually bland) leader Jack Messman.

Gates Opens Windows' Next Wave


Gates Opens Windows' Next Wave 10/29/2003 12:11 AM
UPDATE: Gates sees connected systems and interoperability driving Web services out into the real world.Gates To Kick Off PDC With Longhorn Overview

Opera answers to Windows' call


Opera answers to Windows' call 08/31/2004 07:50 AM
ZDNet Aug 31 2004 12:30PM GMT

Opera answers Windows' call


Opera answers Windows' call 08/31/2004 11:37 AM
ZDNet Aug 31 2004 3:57PM GMT

"Mac users now have an Office suite
equal to Windows'"


"Mac users now have an Office suite
equal to Windows'"
06/08/2004 08:54 AM

Weighing Windows' Security Risks and
Benefits


Weighing Windows' Security Risks and
Benefits
03/06/2004 02:07 AM
Where is the tipping point, when it comes to Microsoft and security risks? There is not a lot of hard data, generated by customers or third-party analysts, that attempts to quantify the point at which Windows' risks outweigh its benefits.

Mac or PC? Windows' security issues help
some users choose


Mac or PC? Windows' security issues help
some users choose
09/21/2004 10:11 PM
USA Today Sep 22 2004 2:19AM GMT

Safari Magic 1.0 adds numerous tools to
Safari


Safari Magic 1.0 adds numerous tools to
Safari
07/20/2004 02:43 AM
Stephen Becker has announced the release of Safari Magic 1.0, a utility which adds several tools to Safari...

The Improved Web Kit


The Improved Web Kit 06/17/2005 02:53 PM

We've already received and committed several patches from external contributors and the repository has only been live for a few hours!

As some of you have already noticed (those of you that built), the new Web Kit not only passes Acid2, but it's also substantially faster at loading Web pages and at handling JavaScript. It contains a number of additional performance improvements that went in post-Tiger.

One question people have asked is "Does this have to replace my system frameworks?" The answer is "No." You can run this custom version of Web Kit with a particular instance of Safari without replacing your system frameworks. The run-safari script we provided does this for you. If you study what it does, you'll see that you can easily try out your own WebKit apps with the new frameworks as well. We in fact encourage you to do this so that you can make sure your apps are functioning properly with the latest WebKit.


Improved Caching in ASP.NET 2.0


Improved Caching in ASP.NET 2.0 07/07/2004 01:17 AM
Stephen Walther looks at the new caching features included in ASP.NET 2.0, and how you can use them to improve the performance and scalability of your ASP.NET applications.

Repression, new and improved!


Repression, new and improved! 12/16/2003 12:31 PM
A Net of Control "Picture, if you will, an information infrastructure that encourages censorship, surveillance and suppression of the creative impulse. Where anonymity is outlawed and every penny spent is accounted for. Where the powers that be can smother subversive (or economically competitive) ideas" Brought to you by (among others)......Microsoft !

Now, a new, improved internet


Now, a new, improved internet 12/27/2004 10:51 AM
Economictimes Dec 27 2004 1:58PM GMT

Improved Search


Improved Search 07/11/2004 10:27 PM

I worked on improving the search on this site today. Search has been through a number of iterations. First, I used the basic Movable Type search. But it was slow and I wanted to do some interesting things with search.

So last year, I switched to using a SQL "LIKE" query to return two-tiered results, first from the title and keywords, then from the body and extended body. This has worked really well so far.

However, one thing bothered me about it: LIKE has no concept of word boundaries. This...

WHERE entry_text LIKE '%date%'

...returns matches for "date," "update," etc. So, I changed it a while ago to this syntax:

WHERE CONCAT(' ',entry_text,' ') LIKE CONCAT('% ','date',' %')

Basically, I started looking for the search term with a space on either side. This turned out to be an astoundingly stupid way to do it. What happens when the search term ends a sentence? Or begins the entry? Newlines, periods, and question marks are not spaces. Duh.

Today, however, I found the right way to do it:

WHERE entry_text RLIKE '[[:<:]]date[[:>:]]'

Those bracket-y things are MySQL's character classes for word boundaries. So it's like my "tack a space on either side" method, but it includes anything that's not a word. Very handy.

(But why don't I just use MySQL's full-text indexing, you ask? Because this is a hosted server, so I have to live with all the default MySQL settings. And the default settings exclude any word of less than four characters from being indexed. So three-letter acronyms like PHP, PDF, JSP, etc. wouldn't be in the index, and for a site like this, that's kind of a showstopper.)

I also did a little hacking of the search phrase you submit. For instance, searching for...

windows update

...will give you different results than if you search for...

"windows update"

Essentially, I tokenize the string but group quoted passages together. So, this...

"four score and seven years ago" abraham lincoln gettysburg

...would get tokenized like this:

Array
(
    [0] => four score and seven years ago
    [1] => abraham
    [2] => lincoln
    [3] => gettysburg
)

Finally, I included some stop words to save my database some work. This...

The penguin is the mascot of Linux

...gets reduced to this...

Array
(
    [0] => penguin
    [1] => mascot
    [2] => linux
)

So, I'm hoping to shake a few bugs out of it in the next few weeks, then I'll post the class so anyone who wants to can take a look at it.

Click here to comment on this entry


IPod Improved


IPod Improved 07/23/2004 01:27 AM
Abcnews.go.com - Thu Jul 22, 08:47 pm GMT

New and Improved SETI


New and Improved SETI 01/02/2005 02:05 PM

Sonic unveils improved ESB


Sonic unveils improved ESB 05/18/2004 06:02 AM
Personal Computer World May 18 2004 10:19AM GMT

WiFi security improved


WiFi security improved 05/06/2004 11:11 PM
Sunday Times South Africa May 7 2004 3:33AM GMT

XServe Improved: Dual 2.3 GHz G5s, 1.2
TB


XServe Improved: Dual 2.3 GHz G5s, 1.2
TB
01/04/2005 10:52 AM

The new and improved John Bolton


The new and improved John Bolton 04/11/2005 02:34 PM
Bush's nominee to serve as U.N. ambassador tempers his criticisms to win confirmation.

Servoy 2.1: over 50 new or improved
features


Servoy 2.1: over 50 new or improved
features
09/24/2004 03:36 AM
Servoy BV has released Servoy 2.1, an upgrade to the company's database development and deployment environment that offers over 50 new or improved features. Important additions to the software include localization tools that enable deploying one solution in multiple languages from the same server without added coding; Style Sheets, which use a syntax similar to cascading Style Sheets for a consistent look and feel across multiple solutions and servers; Type Ahead, which creates an ever-narrowing dropdown list of words or phrases as you type in a field, allowing you to make a selection when it appears; and more.

Ten CSS tricks — corrected and
improved


Ten CSS tricks — corrected and
improved
09/08/2004 08:55 AM

Tantek Çelik offers his critique of Evolt's recent article "Ten CSS tricks you may not know" (via W ebStandards.org).


Linux interoperability improved


Linux interoperability improved 09/20/2004 09:17 PM
Computer Weekly Sep 21 2004 1:19AM GMT

Improved 3G Wireless Application CPUs


Improved 3G Wireless Application CPUs 01/08/2004 08:38 PM
3G Jan 8 2004 5:24AM ET

Nextel Seeks Improved FCC Award


Nextel Seeks Improved FCC Award 09/21/2004 06:22 PM
TechWeb Sep 21 2004 11:13PM GMT

NEW and IMPROVED rugged handheld
computer cas


NEW and IMPROVED rugged handheld
computer cas
01/02/2005 06:25 PM
iPAQ News Jan 2 2005 9:26PM GMT

Released Metabase greatly improved


Released Metabase greatly improved 01/16/2003 03:04 AM
Metabase is a popular PHP database abstraction package that lets developers write portable database applications. This means that Metabase makes it possible to write database applications that do not need to be changed to work with different databases. Currently, Metastorage generates the code of persistence layer APIs that is based on Metabase. The latest improvements in Metabase make it possible for Metastorage to generate more compact persistence APIs.

Introducing the Improved
MacromediaKnowledge Base


Introducing the Improved
MacromediaKnowledge Base
12/22/2004 01:47 AM
Get better answers to your technical questions in the faster, more efficient Knowledge Base.

DockFun! gets improved software update


DockFun! gets improved software update 12/24/2004 12:57 PM
DockFun! 4.6.2 is the latest version of the software that allows you to run an infinite number of Mac OS X Docks...

Much improved bookmarklet - Wists, new
features


Much improved bookmarklet - Wists, new
features
03/14/2005 04:33 PM
Thanks to some fantastic work by Adam Michela at Axentric, there is a much improved 'add to Wists' bookmarklet which...

Nokia launches improved N-Gage


Nokia launches improved N-Gage 04/14/2004 09:13 AM
vnunet.com Apr 14 2004 1:21PM GMT

57 Crown Courts now have improved
e-communications, 53 still to fix


57 Crown Courts now have improved
e-communications, 53 still to fix
04/16/2004 02:26 AM
PublicTechnology.net Apr 16 2004 7:14AM GMT
Grok Description matches for An improved 'Combine Windows' AppleScript for Safari
GrokA matches for An improved 'Combine Windows' AppleScript for Safari

An improved 'Combine Windows' AppleScript for Safari

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Affrus 1.0.1 Update
Development Tools:
Iceberg 1.0.1

Apple seeds Xcode
1.2 update

Apple Xcode 1.2
targets stability
issues

SMS AppleScripts
Updated

EconomicIndicators.g
ov

China Vitae
Streaming AudioBook
of Lessig's "Free
Culture"

Research Browsers
National Commission
on Terrorist Attacks
Upon the United
States

Microsoft Releases
Source Code on
SourceForge

Explore the Red
Planet

CRS Reports Search
Engine

Book Arts on the
Web: An Introduction
to Selected
Resources

W3C Link Checker
Released

Net Plan Builds in
Search

NewsKnife
MySpiders
Modelling and Mining
of Network
Information Systems

Scientists Seek Map
of Science

Affrus 1.0
Welcome to the
‘new’
Web, same as the
‘old’
Web

Return of the
homebrew coder

ADC Reference
Library

Panic Interview
The Cocoa Controller
Layer

Now is time to face
facts, make needed
investment

Without paper trail,
election could be
chaotic

Microsoft change?
Don't hold your
breath

Being Steve Ballmer:
the view from inside

Jack Valenti wrong,
but charmingly so

Silicon Valley: Stop
whining and give
constructive ideas

Feeling competitive
heat, rivals decided
to chill

Linux on desktop
gaining in OS race

Hey, I'm featured in
the Globe and Mail

Bloggers' Music Club
Dave's Best of 2003
CD Club ... first
get-together

Movable Type 3.0 ...
wherefore art thou?

A movie about
dodgeball ... really

CD Club Volume 1:
Rob MacDonald's
"Songs of the
Months"

CD Club Volume 1:
Jeff Hemphill's
Chick Singers

CD Club Volume 1:
Matt Rainnie's Much
East

CD Club Volume 1:
Steven Garrity's
Five-Artist Sampler

Sorting the E-Mail
Japan Raids Intel on
Competition Concerns

Pair of Cisco Apps
Are Open to Attack

Foundry Doubles
Modular Switches'
Performance

Three Former CA
Execs Plead Guilty
to Fraud Conspiracy

Indian Firm Infosys
Ventures Onto U.S.
Soil

what is grok?