Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Exporting Patterns
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
JT  
View profile   Translate to Translated (View Original)
 More options May 27 2012, 9:33 pm
From: JT <justintra...@gmail.com>
Date: Sun, 27 May 2012 18:33:28 -0700 (PDT)
Local: Sun, May 27 2012 9:33 pm
Subject: Exporting Patterns
Hi, could someone tell me if there is a way to export the saved grep
patterns in bbedit? Want to make sure I don't lose all my patterns in
the event I have to do a fresh install.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fritz Anderson  
View profile  
 More options May 27 2012, 10:38 pm
From: Fritz Anderson <fri...@manoverboard.org>
Date: Sun, 27 May 2012 21:38:07 -0500
Local: Sun, May 27 2012 10:38 pm
Subject: Re: Exporting Patterns
On 27 May 2012, at 8:33 PM, JT wrote:

> Hi, could someone tell me if there is a way to export the saved grep
> patterns in bbedit? Want to make sure I don't lose all my patterns in
> the event I have to do a fresh install.

The answer to nearly everything is in

~/Library/Application Support/BBEdit

In this case,

~/Library/Application Support/BBEdit/Setup/Grep Patterns.xml

It's actually a property list file. If you're using the whizzy Dropbox support, the answer to nearly everything is in

~/Dropbox/Application Support/BBEdit

        — F

--
Fritz Anderson
Xcode 4 Unleashed: learn to break concrete with the strength of your will.
<http://x4u.manoverboard.org/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Stone  
View profile  
 More options May 28 2012, 4:00 pm
From: Christopher Stone <listmeis...@suddenlink.net>
Date: Mon, 28 May 2012 15:00:28 -0500
Local: Mon, May 28 2012 4:00 pm
Subject: Re: Exporting Patterns

On May 27, 2012, at 20:33, JT wrote:

> Hi, could someone tell me if there is a way to export the saved grep patterns in bbedit? Want to make sure I don't lose all my patterns in the event I have to do a fresh install.

______________________________________________________________________

Hey JT,

Having a fresh backup of BBEdit's app-support folder and its prefs is desirable of course, but if you want a nice readable export give this Applescript a try.

--------------------------------------------------------------------------- ---
set patternFile to "~/Library/Application Support/BBEdit/Setup/Grep Patterns.xml"
set patternFile to do shell script "echo " & patternFile
tell application "System Events"
        tell property list file patternFile's property list item "SavedGrepPatterns"
                set SavedGrepPatterns to value of property list items
        end tell
end tell
set patternList to {}
repeat with i in SavedGrepPatterns
        tell (contents of i)
                set end of patternList to "         Title:  " & its Title
                set end of patternList to " SearchPattern:  " & its SearchPattern
                set end of patternList to "ReplacePattern:  " & its ReplacePattern
                set end of patternList to ""
        end tell
end repeat
set AppleScript's text item delimiters to return
set patternList to patternList as text
tell application "BBEdit"
        activate
        make new document with properties {text:patternList}
end tell
--------------------------------------------------------------------------- ---

--
Best Regards,
Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »