Find location of substrings the hard way

In order to find the location of a substring in a string I tend to use this method:
set ptrFind to (offset of "get in "target" as string)
this results in ptrFind = 3
However, I'm at a loss when it gets more complex like when I want to find the location of the second "get" in the string "to get to the target".
Any suggestions?

Once you have found the first offset, you can use that as the beginning of the text to get your other offset. From there, to get the offset into the original string, you just have to add the original item back in (plus a correction factor for changing the starting point):
set Target to "let us proceed to get another get"
set SubString to "get"
set FirstOffset to offset of SubString in Target -- the first item
log result
get offset of SubString in (text (FirstOffset + (count SubString)) thru -1 of Target)
set SecondOffset to result + FirstOffset + (count SubString) - 1 -- the second item
log result
I also have a handler that gets all of the offsets and returns them in a list:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #FFEE80;
overflow: auto;"
title="this text can be pasted into the Script Editor">
on run -- example
set TheText to "this is some testing text, some testing text this is"
set TheItem to "is"
set TheOffsets to (GetTheOffsets of TheItem from TheText)
-- show the result
set the beginning of TheOffsets to "The offsets of \"" & TheItem & "\":"
set the beginning of TheOffsets to "The text: \"" & TheText & "\""
choose from list TheOffsets with prompt "Search results:" with empty selection allowed
end run
to GetTheOffsets of SomeItem from SomeText
return a list of all offsets of SomeItem in SomeText
parameters - SomeItem [text]: the text to look for
SomeText [text]: the text to look in
  returns [list]: a list of offset(s) - {} if none found
set {OffsetList, OffsetCount} to {{}, 1}
repeat
set TheOffset to (offset of SomeItem in (text OffsetCount thru -1 of SomeText))
if TheOffset is less than 1 then
exit repeat
else
set OffsetCount to OffsetCount + TheOffset
set end of OffsetList to OffsetCount - 1
end if
end repeat
return OffsetList
end GetTheOffsets
</pre>

Similar Messages

  • Ichat starts to open, lingers a second, then 'unexpectedly' quits. I'm in Snow Leopard 10.6.8. I can't find the ichat plist in hte library, even though I've custom re-installed (even the hard way) and downloaded the latest upgrade. Que pasa?

    ichat starts to open, lingers a second, then 'unexpectedly' quits. I'm in Snow Leopard 10.6.8. I can't find the ichat plist in the library, even though I've custom re-installed (even the hard way) and downloaded the latest upgrade. Que pasa?

    crash report, not a reply:
    Process:         iChat [611]
    Path:            /Applications/iChat.app/Contents/MacOS/iChat
    Identifier:      com.apple.iChat
    Version:         5.0.3 (745)
    Build Info:      iChat-7450300~8
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [101]
    Date/Time:       2011-12-17 19:23:00.671 -0500
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          387052 sec
    Crashes Since Last Report:           18
    Per-App Interval Since Last Report:  65 sec
    Per-App Crashes Since Last Report:   18
    Anonymous UUID:                      D59E7670-AAAB-498C-AEBF-93B692A2DE09
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000004
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   ...thesis.MacinTalkSynthesizer          0x00000001159e418d MEOWReader::MEOWReader(int, void const*, char) + 35
    1   ...thesis.MacinTalkSynthesizer          0x00000001159b4246 SpeechChannelManager::UseVoice(VoiceSpec*, __CFBundle*) + 430
    2   ...thesis.MacinTalkSynthesizer          0x00000001159daf14 SEUseVoice + 71
    3   ....speech.synthesis.framework          0x00007fff85d42d4a NewSpeechChannel + 617
    4   com.apple.AppKit                        0x00007fff86ebee35 -[NSSpeechSynthesizerVars setSpeechChannelWithVoiceCreator:voiceID:] + 125
    5   com.apple.AppKit                        0x00007fff86ebc56d -[NSSpeechSynthesizerVars setSpeechChannelWithVoiceIdentifier:] + 89
    6   com.apple.AppKit                        0x00007fff86ebce7c -[NSSpeechSynthesizer initWithVoice:] + 336
    7   com.apple.iChat                         0x000000010009da09 0x100000000 + 645641
    8   com.apple.iChat                         0x000000010001b3ae 0x100000000 + 111534
    9   com.apple.IMCore                        0x00007fff865fa14c _IMPersonStatusIsOnline + 34989
    10  com.apple.IMCore                        0x00007fff865f9fee _IMPersonStatusIsOnline + 34639
    11  com.apple.IMCore                        0x00007fff865f1b78 _IMPersonStatusIsOnline + 729
    12  com.apple.iChat                         0x00000001000066ad 0x100000000 + 26285
    13  com.apple.iChat                         0x000000010001ac60 0x100000000 + 109664
    14  com.apple.IMCore                        0x00007fff865ecdaa _IMPersonStatusFromFZPersonStatus + 1525
    15  com.apple.CoreFoundation                0x00007fff8512493c __invoking___ + 140
    16  com.apple.CoreFoundation                0x00007fff8512480d -[NSInvocation invoke] + 141
    17  com.apple.CoreFoundation                0x00007fff851406e1 -[NSInvocation invokeWithTarget:] + 49
    18  com.apple.iChat.IMUtils                 0x00007fff859d82f7 -[IMLocalObject _handleInvocation:] + 182
    19  com.apple.iChat.IMUtils                 0x00007fff859d7e6f _IMRDeliverComponentArray + 138
    20  com.apple.iChat.IMUtils                 0x00007fff859d7dba _XDeliverComponentArray + 119
    21  com.apple.iChat.IMUtils                 0x00007fff859d7d23 IMRemoteObjectsMIG_server + 52
    22  com.apple.iChat.IMUtils                 0x00007fff859d7c55 _IMRServerPortCallback + 120
    23  com.apple.CoreFoundation                0x00007fff8511365e __CFMachPortPerform + 366
    24  com.apple.CoreFoundation                0x00007fff850eb6b1 __CFRunLoopRun + 5201
    25  com.apple.CoreFoundation                0x00007fff850e9d8f CFRunLoopRunSpecific + 575
    26  com.apple.HIToolbox                     0x00007fff87b757ee RunCurrentEventLoopInMode + 333
    27  com.apple.HIToolbox                     0x00007fff87b755f3 ReceiveNextEventCommon + 310
    28  com.apple.HIToolbox                     0x00007fff87b754ac BlockUntilNextEventMatchingListInMode + 59
    29  com.apple.AppKit                        0x00007fff869f2eb2 _DPSNextEvent + 708
    30  com.apple.AppKit                        0x00007fff869f2801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
    31  com.apple.AppKit                        0x00007fff869b868f -[NSApplication run] + 395
    32  com.apple.AppKit                        0x00007fff869b13b0 NSApplicationMain + 364
    33  com.apple.iChat                         0x0000000100002da0 0x100000000 + 11680
    Thread 1:  Dispatch queue: com.apple.libdispatch-manager
    0   libSystem.B.dylib                       0x00007fff82939c0a kevent + 10
    1   libSystem.B.dylib                       0x00007fff8293badd _dispatch_mgr_invoke + 154
    2   libSystem.B.dylib                       0x00007fff8293b7b4 _dispatch_queue_invoke + 185
    3   libSystem.B.dylib                       0x00007fff8293b2de _dispatch_worker_thread2 + 252
    4   libSystem.B.dylib                       0x00007fff8293ac08 _pthread_wqthread + 353
    5   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 2:
    0   libSystem.B.dylib                       0x00007fff8293aa2a __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x00007fff8293ae3c _pthread_wqthread + 917
    2   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 3:
    0   libSystem.B.dylib                       0x00007fff8293aa2a __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x00007fff8293ae3c _pthread_wqthread + 917
    2   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x00000001010f2200  rbx: 0x00000001004c6670  rcx: 0x0000000000000000  rdx: 0x0000000000000000
      rdi: 0x00000001010f2200  rsi: 0x0000000000000000  rbp: 0x00007fff5fbfbf90  rsp: 0x00007fff5fbfbf60
       r8: 0x0000000000000017   r9: 0x00000001010f9a00  r10: 0x0000000000007000  r11: 0x0000000000000001
      r12: 0x00000001010f2200  r13: 0x00000001010f2200  r14: 0x0000000000000000  r15: 0x00000001004c70e0
      rip: 0x00000001159e418d  rfl: 0x0000000000010206  cr2: 0x0000000000000004

  • What external drives work well with a late 2011 MacBook Pro?  I ask because I just found out the hard way that a Samsung EVO 840 does not.  Also should I avail myself of something that works with Thunderbolt or Firewire?

    What external drives work well with a late 2011 MacBook Pro (I7, Lion OS) apart from my Kingston flash and USB drive, and the SD drives that I use in my cameras and recording devices?  I ask because I just found out the hard way that a Samsung EVO 840 does not.  Also, should I avail myself of something that works with the Thunderbolt or Firewire connections?  I'm looking to back up music and video files created and/or processed in Logic Pro and the Adobe Production Premium software suite (Premier Pro, After Effects, Audition, etc).

    Hmm, not sure what problems you had installing this drive. The review here gives it good marks for Mac:
    http://www.amazon.com/Samsung-Electronics-EVO-Series-2-5-Inch-MZ-7TE1T0BW/produc t-reviews/B00E3W16OU
    There does seem to be a lot of prep to make it work:
    "1. Preparation to install your new shiny SSD
    1.a You will need a migration tool (I used the Sabrent kit USB 3.0 to Sata that was suggested in these review) see link http://www.amazon.com/gp/product/B00DQJME7Y/ref=oh_details_o03_s01_i01?ie=UTF8&p sc=1
    1.b You will need to download a trim enabler (mid 2012 macbooks only support native trim with apple brand ssd's) I recommend going to cindori.org and downloading trim enabler version 3.xx. You can do this step before or after the OS migration
    1.c You cannot use the Samsung SSD migration software *don't worry Mac has its own imaging/migration utility*"
    Also in those reviews:
    " Only down side when using this product in a Mac Mini is you will be required to download and install Trim Enabler so that your drive performs optimally on your Mac device. This is an Apple issue, not Samsung, but it is an extra step you will have to take after you install the hard drive, and any time you perform an OS upgrade." He rant's on.
    Personally I only deal with OWC:
    http://eshop.macsales.com/shop/SSD/OWC/
    They are very knowledgable and if there's a problem they will gladly take back the item. (Never happened to me yet - 8 years and counting).
    Just upgraded my 13" MBP 2011 to 120 GB for $79. Adobe CS 6 opens in 3 seconds! Awesome!
    When I was in Chicago I had a pro photographer for a client. She wound up with 4 internal drives in her Pro, 4 external drives and an dual array locked in a steel vault in the basement. All from OWC. OK she was a bit paranoid. Great client though.
    As far as value for price:
    http://eshop.macsales.com/item/OWC/MES3FH7500G/
    500 GB for $130.
    However as far as reliability is concerned:
    http://www.rockpapershotgun.com/2014/01/30/are-ssds-reliable/
    http://www.extremetech.com/computing/173887-ssd-stress-testing-finds-intel-might -be-the-only-reliable-drive-manufacturer
    So sudden power loss is an issue with SSDs.
    Personally I'd go with a moderate sized SSD internally and a conventional external for backup. An array would be the most reliable.

  • 'Learn Python the Hard Way' book help - PowerShell

    There's a book out called 'Learn Python the Hard Way' and it wants to run the exercises in PowerShell, which no one apparently knows much about,  I just need to do a couple of simple functions, I just don't know how to do them and I don't
    see how online.  Here's an excerpt : "
    8. You should be back at a prompt similar to what you had before you typed python. If not find out why.
    9. Learn how to make a directory in the Terminal. Search online for help.
    10. Learn how to change into a directory in the Terminal. Again search online.
    11. Use your editor to create a file in this directory. Make the file, “Save” or “Save As...”, and pick this directory.
    12. Go back to Terminal using just the keyboard to switch windows. Look it up if you can’t figure it out.
    13. Back in Terminal, see if you can list the directory to see your newly created file. Search online for how to list a directory. " 
    I made  a directory in PowerShell but haven't got past that.  Any help?

    I'm sorry you weren't able to get a knowledge level-appropriate response to your question.
    The answer you were looking for:
    Use the command "cd" (change directory). At the command line type 'cd <directory name>'
    So if the name of your file is is called "testdirectory" you would type 'cd testdirectory'
    And it's that simple.

  • Stacks the hard way

    HI
    for this prblem i have to make a stack, but i have to program the stack the hard way and cant use any java predetermined stack things so here goes my problem.
    I ahve been given this node class
    public class Node {
    public String data;
    public Node next;
    public Node(String tag, Node rest) {
    data = tag;
    next = rest;
    } // end of constructor
    } // end of class Node
    no in the main body of program would it work as a stack if i did the following:
    public class Stacking {
    private Node top;
    public Stacking() {
    top = null;
    public void pushTag(String startTag) throws TagError {
    if(top==null){
    top = new Node(StartTag,null)
    else {
    top.next=new Node(top,null);
    top.data = startTag;
    many thanks for any help that you can give me

    Here's something to get you started:public class Stack {
        private Node top;
        public Stack () {
            top = null;
        public void push (Object element) {
            top = new Node (element, top);
        public Object pop () { // throws EmptyStackException
            Object element = top.getElement ();
            top = top.getNext ();
            return element;
        public Object peek () { // throws EmptyStackException
            return top.getElement ();
        private class Node {
            private Node next;
            private Object element;
            public Node (Object element, Node next) {
                this.element = element;
                this.next = next;
            public Object getElement () {
                return element;
            public Node getNext () {
                return next;
    public class Test {
        public static void main (String[] parameters) {
            Stack stack = new Stack ();
            stack.push ("1");
            stack.push ("2");
            System.out.println (stack.pop ());
            System.out.println (stack.peek ());
            System.out.println (stack.pop ());
    }You still need to build the exceptions yourself.
    Kind regards,
      Levi

  • Can i transfer music not purchased from iTunes store from my iPod to new iMac. also need to move photos from iPod to iMac...help! computer was stolen and am now scrambling. Have learned the virtue of backing up the hard way!

    Is there a way to transfer music not purchased from the iTunes store from my ipod to my imac? Also, is it possible to move photos from ipod to imac? My computer was stolen so lost it all...have learned the lesson of backing up the hard way!

    See this older post from another forum member Zevoneer covering the different methods available for copying content on your iPod back to your PC or Mac.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Learn the Hard Way. Zooming in on video = Major Loss in Hi-Def Resolution?

    Hello, I'm doing a job for a friend. Basically a commercial job, but we're amateurs and doing it alone.
    We used a high-end Panasonic camera with a P2 card. It recorded at 30 fps and at 720p.
    I did all the editing, then compressed it for the iPad. Looks okay... BUT.
    BUT. I original shot from a few feet back extra to stop the actors from going out of frame. Then I zoomed in a little in editing using the "Image and Wireframe" option.
    I'm noticing the zoomed in shots look a little grainy. At first I thought this was my video card (don't laugh, but I'm using a white macbook). Now I'm realizing that it's the zooming in that's causing the graininess, as the shots were I didn't zoom in look crystal clear high-def.
    Is there anything I can do? I thought using the P2 Card would have such high resolution I'd be able to zoom in just fine. I guess this is learning the hard way? Next time, should I just mentally let go of the "Image and Wireframe" option as it's going to be a different quality than the other shots?
    Thanks guys. We might have to reshoot this whole thing.

    Yeah, you should render it out before giving up all hope.
    That said, if you zoom by a factor of 2, your 720 becomes 360.
    That's less resolution that SD! So it all depends +how much+ you zoom.
    Maybe you can zoom in a bit less, and it'll look passable.
    Sometimes I shoot at 1080p if I know I'll need to zoom +a little+
    or use a smoothcam function, so I'll have decent resolution at 720p.

  • Uninstalling iTunes the hard way?

    I installed iTunes in my external hard drive which has done some weird stuff which changed its letter from G to I, and now it will not longer recognize itself, so now I have to uninstall it, but it won't allow me...
    The folder "iTunes" cannot be found or created, and is required.
    The default location for this folder is inside the "My Music" folder.
    So the only way I could think of to pull this off is to uninstall and reinstall the very hard way, which leads to my question... is there a hard way of uninstalling it?

    I installed iTunes in my external hard drive which has done some weird stuff which changed its letter from G to I
    do you get any joy with launching itunes again if you change the drive letter of the external back to G?
    although the following document deals with changing ipod drive letters, the same techniques can apply to changing other drive letters:
    Windows confuses iPod with network drive or hard drive and may keep iPod from mounting or songs may seem to disappear

  • The only way I got Yosemite to Work.... the Hard way

    I think I have tried every suggestion in the support forum to get my Yosemite running on my 2013 15" MBP from Mavericks.   Everything I tried ended up with a black screen with a white circle with a slash.  Tried the upgrade way, upgrade with safe boot, upgrade with verbose boot.  I cleaned up the MBP, fixed all permissions, ran Disk warrior AND Diskutility first aid.
    I then tried a clean install by creating a boot disc on a USB drive.  Erased the MBP SSD.   That did work and I had a working Yosemite but none of my stuff on it.  So I did migration assistant.  Black screen with white slashed circle.
    Oh also tried the trim enabler someone suggested.
    So I went back and did another clean install to the working yosemite and use shared drives to move music, videos, and photos over to Itunes and Aperture.  Loaded new programs not on app store.  downloaded programs from App store.
    Everything is working now.  But it took about 80 hrs of working and waiting (mostly waiting).  Never had a problem like this before.   Evidently there was something on my MBP in the applications, or settings or something that Yosemite did not like.
    The good news is that my MBP is pretty lean now compared to the previous set up that had lots and lots of little apps that I had tried and stopped using but never removed complete with applications, application support, and application prefs.
    So if you are having problems you can do this brute force clean install and it should work.

    Hi Idreier,
    I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit.
    Hopefully this helps!

  • Computer crashed, move hard drive to another computer. How do I find address book on the hard drive to import to new computer

    I need to retrieve contacts from my wifes thunderbird profile. all I have is the hard drive from the crashed computer. Where can I find the address book? I have to use two different computers as her new computer has no spot for another hard drive

    have you enabled viewing of hidden files and folders? see http://windows.microsoft.com/en-us/windows/show-hidden-files#show-hidden-files=windows-7
    Windows hides the application data folders and you must override the setting to find anything it contains.

  • How can I set the finder window to open the same way every time?

    Everytime I open Finder it goes back to it's default view which is just too small, but I want to set the finder columns and window so that they open the same exact way every single time. I'm tired of resizing everything.
    Currently I have to resize every window and column everytime and I think my work is much slower then when I was on Windows because of it.
    Is there a setting, script, file, patch, anything, is there absolutely anything I can do to actually control the Finder views and make them adjust to MY criteria and stay that way...

    That is a big negative. That does absolutely nothing other then close my window, next time the finder window is opened then the column widths are small again.
    In Windows Explorer all your windows are customizable, how do I do this with Finder?

  • Quick paragraph style application transformation ... or reverse engineering a document the hard way?

    Hi everyone,
    I'm using Indesign 5.5 for Windows and have inherited a technical document with no styling applied (not even text threads or auto-pagination), but all the fonts are in the correct sizes and colours. So it looks ok in print, but trying to actually do anything with it is a nightmare.  For obvious reasons I WANT to apply paragraph styles to the document so I can generate a new auto-updating TOC, maintain and add to it, and all the other good stuff that means.
    My question is this - is my only choice to go through page by page and apply new styles (matching their current appearence) to every different heading and bullet point, or is there a nice easy way (or script) that i can use to whizz through the document for me, neatly applying a new style to each different font variety or element it finds (not altering their appearence) and leaving me with a nice list of styles I can rename (then take all the credit for? ha!) Basically take a document that's already been put together wrong, and make it right? I think this might've been imported into InDesign from something like Quark, hence the state it's in, but I don't have access to anything but this version. Any help you could offer would be great.  Oh, and if (as I suspect) my only option is indeed to apply all the styles manually one line at a time, then feel free to point and laugh, I doubtless deserve it.
    Thanks!
    Phil

    If you need to reproduce the existing page layouts, I'd suggest you read up more on what paragraph styles can do, before annihilating whatever layout and flow behaviors have been stuck on the content. For example, if level "X" headings always start at the top of a text frame, or top of a page, or even top of a right page, or top of a left page, a paragraph style property can do this. So you'd want to create and apply a paragraph that does this to those paragraphs before you thread text frames; the top of <whatever> frame paragraph property will keep the paragraphs in place.
    It is possible to create paragraph styles with properties that behave crazily when they do what you define for them. For example, you can define a paragraph style that sets the style of the paragraph that's created when you press Enter/Return. You can also use the smartness built into the Next Style property. If a paragraph style, say Head1 is defined to create a new paragraph when you press Enter/Return, it can also apply its next style property to the paragraph follows Head1 in the same text selection. So, if you select a paragraph that's supposed to become Head1 (which defines its next style as BodyAfterHead1) and also select the paragraph that follows it,  and then hold down Ctrl+Click on the Head1 style's name in the Paragraph Styles panel, Apply "Head1" then Next Style appears. If BodyAfterHead1 defines Body as its next style, and more than two consecutive paragraphs are selected, Head1 will be applied to the first paragraph, BodyAfterHead1 will be applied to the second paragraph, and Body will be applied to the third and following paragraphs.
    So, you'll be investing in setting up the Next Style property for paragraph styles, and selecting as many consecutive paragraphs as needed for applying a pattern of styles that agrees with your next style definitions. Each time you use this feature, you're collecting benefits from your investment.
    If you need to reproduce the look of the layout on some number of pages, you could export to PDF and use a script to efficiently place each page of a multi-page PDF on a "PDF layer" you create, that appears on every document page in the ID document, lock and move the layer below the active document layer, and use it as a placement underlay.
    Search Google for terms like "InDesign apply style and next style," "InDesign place multipage pdf script," "InDesign installing and using scripts," "InDesign paragraph style keep options," and "InDesign start paragraph options," without quotes, for informative links to anywhere on the Web, as well as on these Adobe forums. To limit the searches to Adobe forums only, include "forums.adobe" without quotes in the search query.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • I recently purchased an iMac, learned the hard way that iDVD is not loaded, tried to copy iDVD from  my MacBook but came up short.  Each time I launched iDVD I got a message that I have no Themes even though the Mac I took it off runs just fine.

    Tried to load iDVD from my MacBook onto my new iMac but keep getting a message that it can find any themes.  iDVD runs just fine in the MacBook but for some reason when I copied it from the MacBook using a flash drive and download it on the iMac the themes went away.  Suggestions?

    The themes, when installed, will be in a Themes folder inside the HD/Library/Application Support/iDVD folder.  Check there and when you find it copy it to the same folder on your new Mac. 
    Then go to iDVD's advanced preference pane and point iDVD to the location of the Themes folder:
    If you can't find the Themes folder on your old Mac you can do a custom install of iDVD and its  resources from the disk that came with the old Mac. It will look similar to one of these:
    OT

  • After using "consolidate library" to move my media to a NAS the items counts do not match.  How do I find what is different the easiest way??

    I wanted to move my itunes media on my imac to a NAS drive.  I used the advance preferences to change the folder to the folder on the NAS.  I then went to the "organize library" setting to consolidate.
    When I compare the two folders, the music folders are different (807 items in the old to 798 items in the new), mobile applications are different (143 in the old to 153 in the new), Movies are different (321 items in the old, 324 in the new).
    I think I already had the entire folder organized the way itunes wanted it.  I'm not sure why the count would increase or to easily make sure I'm not missing any info.
    Any suggestions?
    Thanks.

    Actually, a little off on the situation as I originally described.
    Compared the old items counts to the new item counts:
    1. The music folder increased in item counts.
    2.  Books is identical.
    3.  Mobile apps decreased by 10 on the new.
    4.  Movies decreased by 3.

  • Add a watermark, the hard way

    Hi.
    I've been drooling over the Acrobat 7.0 SDK documentation. It talks about an addWatermarkFromFile() function in JavaScript. You lucky, lucky, lucky people.
    I have Acrobat 6.0 (Pro). Ugh. You can add a watermark in the application, but there is no addWatermarkFromFile(). I had thought of using MenuItemExecute to work the menus...
    acrApp.MenuItemExecute "COMP:AddBack"
    SendKeys "%b"
    SendKeys MY_PATH & "MY_FILE.pdf"
    SendKeys "{ENTER}"
    However, the crafty dialog seems to be modal, ie the code halts at MenuItemExecute and waits for me to dismiss it before executing the SendKeys commands.
    Is there a way round this?
    Jon
    MS Office 2003
    MS Windows XP Pro SP2
    Adobe Acrobat 6.0 Pro

    > Is there a way round this?
    Upgrade to Acrobat 9.

Maybe you are looking for