IPAD must-haves. And fun-to-haves.

Brighten your iPad with a colorful cover, stream to your TV, download pictures from your digital camera, and more. There’s already so much you can do with iPad and iPad mini

Apple Wireless Keyboard

The incredibly thin Apple Wireless Keyboard uses Bluetooth technology, which makes it compatible with iPad

Apple unveils iPad mini: ‘Thin as a pencil, light as paper’

iPad inspires creativity and hands-on learning with features you won’t find in any other educational tool

Lightning connector and FaceTime HD camera

Apple announces 4th generation iPad packing an A6X CPU

Pages

Showing posts with label Pages. Show all posts
Showing posts with label Pages. Show all posts

Friday, August 9, 2013

Applescript to change Pages underline to italic

I need to scan 85,000 words in a Pages document and change all underlined words to italic.  I have the following code:

 

tell application "Pages" to tell front document

          repeat with i from 1 to (count every word)

                    tell word i

                              if underline type is in {single underline, double underline} then set properties to {underline type:none, italic:true}

                    end tell

         end repeat

end tell

 

This works great as far as it goes.  The only problem is that this changes only the words in the document, but not the spaces between them.  So it will turn this: (The quick brown fox)  into this: (The_quick_brown_fox).  But what I want is this: (The quick brown fox).

 

So how would this Applescript need to look to change the formatting of the space after the word, as well as the formatting of the word itself?  Or maybe the code should add a delete and space after each changed word?  I'm not sure.

 

Any help is HUGELY appreciated!


View the original article here

Thursday, August 8, 2013

Applescript to change Pages underline to italic

I need to scan 85,000 words in a Pages document and change all underlined words to italic.  I have the following code:

 

tell application "Pages" to tell front document

          repeat with i from 1 to (count every word)

                    tell word i

                              if underline type is in {single underline, double underline} then set properties to {underline type:none, italic:true}

                    end tell

         end repeat

end tell

 

This works great as far as it goes.  The only problem is that this changes only the words in the document, but not the spaces between them.  So it will turn this: (The quick brown fox)  into this: (The_quick_brown_fox).  But what I want is this: (The quick brown fox).

 

So how would this Applescript need to look to change the formatting of the space after the word, as well as the formatting of the word itself?  Or maybe the code should add a delete and space after each changed word?  I'm not sure.

 

Any help is HUGELY appreciated!


View the original article here