Looking for Pages script to find "return" "return" and delete 2nd one only

Looking for a Pages Applescript to find "return" "return" and delete 2nd one only. Perform on entire document.
Thanks

Funny, the same question was asked on 2011/11/12 in http://macscripter.net/viewtopic.php?id=37477
Nigel Garvey posted a neat answer :
--{code}
tell application "Pages"
   delete (paragraphs of front document whose length is 1)
end tell
--{code}
Yvan KOENIG (VALLAURIS, France)  lundi 14 janvier 2011 11:01:29
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community

Similar Messages

  • Script to find out table and index candidates to keep in the buffer pool

    I am looking for a script to find out tables and indexes to keep in the buffer pool.
    Could you help me on this ?
    thanks...
    Markus

    this is more of a open question. As you know ur data well. We do not know whats ur data. cachin tables in buffer pool is okay, but it might age out after not being used...instead you can use the KEEP POOL...to cache small tables/popular tables into the keep pool...as keep pool guarantees full caching .....
    here are some links on keep pool cacheing
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#sthref410
    http://www.dba-oracle.com/oracle_tips_cache_small_fts.htm
    http://www.dba-oracle.com/t_script_automate_keep_pool_tables_indexes.htm
    http://www.dba-oracle.com/oracle_news/news_caching_keep_pool_large_objects_clob_blob.htm
    Edited by: user630084 on Apr 8, 2009 5:48 AM

  • Looking for a script that get images' urls from a website

    Hi,
    I have a website where users can insert theirs hotel informations.
    Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
    I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
    Someone can help me?

    La_Salamandra wrote:
    I have a website where users can insert theirs hotel informations.
    Most of them do not insert photos, I guess because the procedure is quite long and difficoult for the average user's skills.
    I'm looking for a script that take as input the url of the website and give as output the urls of the images of the site, so the user can decide which to upload on his tab.
    Someone can help me?
    You have to improve your design. Even if you can find the Coldfusion code, your design will still fall short in 2 ways.
    First, it is unreliable, because you're depending on some arbitrary site to be available and up to speed. Secondly, it is aesthetically wrong to be collecting pictures, especially large numbers of them, dynamically from someone else's site.  Think of their copyright and bandwidth.
    Fortunately, there are simple solutions. First, identify, by eye, the web pages containing the pictures you're interested in. Ask for permission from the owner.
    You could indeed use Coldfusion's cfhttp or any other script to download the JPGs, PNGs, and so on. But then, why waste your time re-inventing the wheel? It is infinitely better to use a web crawler !
    With most crawlers, you only have to supply the URL of the site, and the file extensions it has to grab (in your case, jpg, png, bmp, and so on).
    One click on the button, and you have them reeling in. Automatically. Some crawlers are considerate enough to enable you to adjust the download bandwidth. (We can learn from a million years evolution wisdom. The vampire bat is known to inject a painkiller before sucking!).
    Now that you've downloaded the images to your site, the links you display to your users are all yours. You may choose to resize some of the images, display them as you wish, and the issues of reliability and bandwidth are now up to you.

  • I blog on TypePad using Word 2007 and documents freeze when I'm looking at them in Windows explorer; why do I get the error message that Mozilla is looking for a script?

    I have now had two error messages - the first one looked for this script: Script: resource://gre/modules/XPCOMUtils.jsm:258. The second one (today) looked for Script: resource://gre/components/nsPrompter.js:68.
    I have reset my word template, also reset word registry for data and options (as per Microsoft's help pages) for both those 'fixes' there was an initial improvement, but the problem happened again after I reposted on my blog today and then went to Windows explorer to view my files. It seems to 'seize' as I select a file, so that the preview does not appear (for up to 15-20mins).
    I see on the internet using the second script as a search just now that one other has had a similar problem and one also since Mozilla 4 upgrade. My problems have also been pretty much since I upgraded.
    It happens (apart from my fixes) every time I go to look at a word document via Windows explorer. Excel files are less affected.
    One web suggestion is to clear the cache, but I am hesitant to lose all my passwords unless I have to.

    I still have the problem although I uninstalled Mozilla (clearing the cache didn't work and neither did Word diagnostics), so have ended up thinking it could be Norton (the manual update worked x1) or Windows. Today I found an answer: disable the preview pane in Windows Explorer - there's a history of problems with this view.

  • Looking for a script to automate renaming layer objects, not the layer itself!

    Hey there everyone,
    I was wondering if there is a possibility to create/have a script for an automated renaming of several named layer objects in Indesign (CS6).
    The situation, I'm facing is a document for a templating process with at least 80 layers and sometimes some special elements on each layer. The naming of the layers is kind of repeating for each page that is used. The only difference is some prefix change in the layer name and/or the name of an element itself. My problem is, that I need to rename most of those layers AND elements in a same way and I'm looking for a script that asks me for the name of a layer or element (perfect would be just a part of the name to have multiple steps at once) and I have the chance to type in the desired value. It affects frames, graphical elements and text boxes.
    If anyone has an idea, how to simplify this process I would be very glad to get some informations or advices.
    Thanks in advance
    Ralf

    Here is a more descriptive version of the script above... :)
    # Change "PSDrive" to PS1: (Sitecode)
    CD PS1:
    # Get all CMPackages to $CMPackages_All Variable
    $CMPackages_All = Get-CMPackage
    # Set the DP to use with. You may need to run it again with other DP just in case some Packages are missing...
    $DPName_FQDN = "YourDP.Contoso.com" # Your FQDN DP name to reference from.
    # Set folder to store *.pkgx files
    $FilePath = "E:\_ESD\Prestage\" # FilePath
    # For all CMPackages
    foreach ($obj in $CMPackages_All) {
        $packageType = $obj.PackageType
        $packageID = $obj.PackageID
        $packageVendor = $obj.Manufacturer
        $packageName = $obj.Name
        $packageVersion = $obj.Version
        # Formulate File name based on Vendor Name, version and PackageID
     $FileName = $FilePath + $packageVendor + "_" + $PackageName + "_" + $packageVersion + "_" + $packageID + ".pkgx"
        # Replace space with underscore
        $FileName = $FileName.Replace(" ","_")
        if ($PackageType -eq 0) {
            if (!( Test-Path $FileName)) { # This makes the package to skip if it is already created.
                Write-host "Publishing CMPrestage Content for $PackageID $PackageName to $FileName via $DPName_FQDN ..."
                Publish-CMPrestageContent -PackageID $packageID -DistributionPointName $DPName_FQDN -fileName $FileName -ErrorAction Continue
    YPae

  • I am trying to find an app or software to burn iMovie slideshow to a dvd.  I have a MacBook Pro with Mavericks.  There are a lot of DVD Creator apps a the App store. Looking for a recommendation of what to use and tips.

    I am trying to find an app or software to burn iMovie 11 slideshow to a dvd.  I have a MacBook Pro with Mavericks.  There are a lot of DVD Creator apps at the App store. Looking for a recommendation of what to use and tips. Thank you.

    I've been using "Burn" for years and it has been the only DVD burning software I have ever used for the mac. I have never needed to look at other apps. Unless you want something that has more bells and whistles such as Roxio's "Toast" : http://www.roxio.com/enu/products/toast/pro/overview.html
    There are thousands of quality free apps out there for the mac that are not part of the App Store. All you have to do is read reviews online, do a little search, the Apple forums are full of recommendations from experienced users that have been here for years...

  • Looking for an app that finds a restaurant centrally located to me

    looking for an app that finds a restaurant centrally located to me and friends

    Try the App store:
    1. In search type R followed by E followed by S followed by T followed by A followed by U followed by R followed by A followed by N followed by T.
    2. Click SEARCH.
    3. Browse through results.
    4. Select the app that you want.
    5.Click download on the app you want.
    6.After that App is downloaded use the app.

  • Looking for a query to find first/last dates in overlapping dates...

    Hi,
    I'm looking for a query to find the first dates and last dates in a table conaining overlapping dates.
    I have a subscription table which has for each Customer start and end date for different subscriptions.
    I want to know the different ranges of date where there is subscriptions active.
    so if the table has this:
    CustID, Start date, end date
    1, 2008-01-01, 2012-06-06
    1 ,2009-01-01, 2011-01-01
    1, 2011-01-01, 2013-02-02
    1, 2013-01-01, 2013-08-08
    1, 2014-01-01, 2014-04-04
    I want to produce this result:
    custid, range start, range end
    1, 2008-01-01, 2013-08-08
    1, 2014-01-01, 2014-04-04
    the first row is the range identified from the 4 rows in my subscription table.
    thanks :)

    I think I found it...
    http://stackoverflow.com/questions/5213484/eliminate-and-reduce-overlapping-date-ranges
    let me try this method
    Hi,
    m writing to follow up with you on this post. Thanks for you posting a reply to share your workground. Was the problem resolved after performing the above link? If you are satisfied with the above solution, I’d like to mark this issue as "Answered".
    Please also feel free to unmark the issue, with any new findings or concerns you may have.
    Thanks,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Looking for a way to find out the x,y coordinates of a string inside a PDF

    Hi!
    I'm looking for a way to find out the x,y coordinates of a string inside a PDF (with free java api's only)
    I got a pdf, and a string to find inside it, what i need to do is to get this string x,y position inside that pdf....
    If any one knows of such, plz let me know...
    Thanx ahead
    Daniel.

    vedmack wrote:
    Hi!
    I'm looking for a way to find out the x,y coordinates of a string inside a PDF (with free java api's only)
    I got a pdf, and a string to find inside it, what i need to do is to get this string x,y position inside that pdf....
    If any one knows of such, plz let me know...
    Thanx ahead
    Daniel.AFAIK, a string of text does not have an (x,y) location inside a PDF file. The location is exists on your screen, and will differ whenever you adjust the resolution of it. Text can have a location when it's stored as an image though, but than it's really the location of a certain number of pixels (not necessarily a string!).

  • Looking for pages designd using iWeb

    hi and greetings from germany,
    i'm looking for pages designd using iWeb to get an impression how it is working. I would like to build pages with text and i would like to know if it is possible to change or delete the placeholders for photos in the templates.
    sorry - i can only use that english i learnd at school long ago ... ;-))

    http://www.happyadam.com
    The URL above points to my iWeb - spent a couple of hours with this over the weekend. It's quite flexible - takes a little getting used to (if you've used Pages then it's similar). There's not many templates but it's a good starting point.
    The worst thing is the .Mac servers - they're very slow for hosting these iWebs as many others have found.
    12 Powerbook G4 1.33GHz   Mac OS X (10.4.4)  

  • Install gets stuck looking for /global/scripts/ac_media.js

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

    My dad is older and has moved into a retirement home.  He gave us his iMac G4.  We have all of the original install discs (including the Mac OS X 10.2 operating system).  My first problem is that he can't remember his password (even when we share his "hint" with him).  Through a general Google search and on the Apple support site, I have read that I can restart the computer with the OS disc in it, holding the C key down and it will reinstall the OS and I can create a new password.  My problem is when the install starts running, it seems to open the IE and the status bar indicates that the G4 is accessing the Apple site to search for files.  The process gets stuck when looking for /global/scripts/ac_media.js.  I downloaded that file from Apple onto a thumb drive, but didn't know where to copy it into my G4.  Can anyone help me?
    Thanks,
    Julie

  • Looking for a script which gives Drive,Diskspacefree,Databasename,Filename,Filetype,Filesize,Spaceused,spacefree,free(%),MaxsizeMB,autogrowthsize,Filegroup

    Hi All,
    I need a T-script  for sql 2005 and 2008 which should give output as:
    Looking for a script which gives Drive,Diskspacefree,Databasename,Filename,Filetype,Filesize,Spaceused,spacefree,free(%),MaxsizeMB,autogrowthsize,Filegroup

    In the list below, everything that is in bold face is available in sys.master_files:
    Drive
    Diskspacefree,
    Databasename
    Filename
    Filetype
    Filesize
    Spaceused,
    spacefree,
    free(%),
    MaxsizeMB
    autogrowthsize
    Filegroup
    Everything in bold face is in sys.master_files. Diskspacefree is also fairly simple; you can get it with xp_fixeddrives.
    Filegroup requires you sys.filegroups in every database, although you can hardcode "PRIMARY" for the file_id = 1.
    To get space used per file, it appears that you need to need to visit every database and run fileproperty(filename, 'SpaceUsed') to get the data.
    You need to revisit the topics for the views and function I have listed here. xp_fixeddrives is undocumented, but the output is very simple to grasp.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Looking for iTunes Script

    I'm looking for a script that would remove ALL the album art from my songs. I've got so many mismatched album covers/art that it would be easier to start over from scratch than to go through all my songs one by one.
    Thanks in advance,
    Chris

    You really don't need a script.
    Select all songs (Command-A) and Get Info (command-I).
    Tick the checkbox at 'Artwork' and click OK.
    All embedded artwork will be removed.
    To remove all downloaded artwork (from the iTunes Store), select all songs again, control-click on the selection and choose 'Clear Downloaded Artwork'.
    Hope this helps.
    M

  • Looking for a clear case that protects screen and click wheel

    Hi,
    I've got a new 8GB Nano. I'm looking for a case to protect it from general dings and scratches. What I'm looking for is a clear case with screen and click wheel protection. Anyone know where I can find one? So far, all I've been able to find are clear cases that protect the screen but leave the click wheel unprotected. Or is click wheel protection not that that big of a thing?
    Thanks!

    There don't seem to be many cases available yet for the new Nano. I ordered one from iSkins, a company in Canada. You can check their website.

  • Hi looking for a bit of free  anti - virus and firewall for osx 10.8.2

    hi looking for a bit of free  anti - virus and firewall for osx 10.8.2 any pointers also any one used Mac cleaner ?

    1. This comment applies to malicious software ("malware") that's installed unwittingly by the victim of a network attack. It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to the victim's computer. That threat is in a different category, and there's no easy way to defend against it. If you have reason to suspect that you're the target of such an attack, you need expert help.
    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files. This feature is transparent to the user, but internally Apple calls it "XProtect." The recognition database is automatically updated once a day; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.
    The following caveats apply to XProtect:
    It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets (see below.)
    It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.
    3. Starting with OS X 10.7.5, there has been another layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't actually been tested by Apple (unless it comes from the Mac App Store), but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. For most practical purposes, applications recognized by Gatekeeper as signed can be considered safe.
    Gatekeeper has, however, the same limitations as XProtect, and in addition the following:
    It can easily be disabled or overridden by the user.
    A malware attacker could get control of a code-signing certificate under false pretenses, or could find some other way to evade Apple's controls.
    For more information about Gatekeeper, see this Apple Support article.
    4. Beyond XProtect and Gatekeeper, there’s no benefit, in most cases, from any other automated protection against malware. The first and best line of defense is always your own intelligence. All known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore reduces to a battle of wits between you and the malware attacker. If you're smarter than he thinks you are, you'll win.
    That means, in practice, that you never use software that comes from an untrustworthy source. How do you know whether a source is trustworthy?
    Any website that prompts you to install a “codec,” “plug-in,” or “certificate” that comes from that same site, or an unknown one, is untrustworthy.
    A web operator who tells you that you have a “virus,” or that anything else is wrong with your computer, or that you have won a prize in a contest you never entered, is trying to commit a crime with you as the victim. (Some reputable websites did legitimately warn users who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)
    “Cracked” copies of commercial software downloaded from a bittorrent are likely to be infected.
    Software with a corporate brand, such as Adobe Flash Player, must be downloaded directly from the developer’s website. No intermediary is acceptable.
    5. Java on the network (not to be confused with JavaScript, to which it's not related) is a weak point in the security of any operating system. If a Java web plugin is not installed, don't install one unless you really need it. If it is installed, you should disable it (not JavaScript) in your web browsers. Few websites have Java content nowadays, so you won’t be missing much. This setting is mandatory in OS X 10.5.8 or earlier, because Java in those obsolete versions has known security flaws that make it unsafe to use on the Internet. The flaws will never be fixed. Regardless of version, experience has shown that Java can never be fully trusted, even if no vulnerabilities are publicly known at the moment.
    Follow these guidelines, and you’ll be as safe from malware as you can reasonably be.
    6. Never install any commercial "anti-virus" or "Internet security" products for the Mac, as they all do more harm than good. If you need to be able to detect Windows malware in your files, use the free software ClamXav — nothing else.
    Why shouldn't you use commercial "anti-virus" products?
    Their design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere.
    In order to meet that nonexistent threat, the software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.
    By modifying the operating system, the software itself may create weaknesses that could be exploited by malware attackers.
    7. ClamXav doesn't have these drawbacks. That doesn't mean it's entirely safe. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so can corrupt the Mail database. The messages should be deleted from within the Mail application.
    ClamXav is not needed, and should not be relied upon, for protection against OS X malware. It's useful only for detecting Windows malware. If you don't need to do that, avoid it. Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else.
    8. The greatest danger posed by anti-virus software, in my opinion, is its effect on human behavior. When people install such software, which does little or nothing to protect them from emerging threats, they get a false sense of security from it, and then they may do things that make them more vulnerable. Nothing can lessen the need for safe computing practices.
    9. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use.

Maybe you are looking for

  • ESW: Question on the usage of "READ PURCHASE ORDER" service operation

    Hi everyone, I plan to consume consume "READ PURCHASE ORDER" in my composite application. When I navigated to SAP Documentation on ES Workplace, I found out the following paragraph in the "Notes on SAP Implementation" section. Notes on SAP Implementa

  • Regular expressions for replacing text with sms language text

    Hi, I'm trying to write a function which converts normal, correctly spelled text into the shorter sms language format but struggling to come up with the regular expressions i need to do so, can anyone help? 1: remove surplus white space at the beginn

  • PS CS5 WIN XP-64 color hud/gpu problems

    I have a Nvidia quadro fx 3400 gpu and am running win xp 64 with ps cs5 64 and none of the color hud, scrubby zoom, rotated display or preview brush size/hardness works. How do i tell if my gpu is supported? I read something about downloading andd in

  • Camera RAW and iPhoto integration

    >I want to edit a JPG or TIF image in iPhoto in ACR, but I seem to be unable to do that. >The panel with the pop-up menu to set Camera RAW when opening a JPG or TIF file from an ordinary Finder Folder I appears to be completely bypassed, when when co

  • Controlling B3 virtual inst with Roland VK-8M

    is it possible to control the virtual drawbars of the virtual B3 with midi expander Roland VK-8M's drawbars ?