AppleScript, Finder and Mavericks

I'm frustrated.
Addressing Finder in AppleScript from Mavericks is unbelievably slow. I just upgraded one of my "automation" machines (a quad-core 2.5GHz iMac with 32GB of RAM) to Mavericks from 10.8.5, and the AppleScript that has been running on it since 10.7.5 is struggling with what I would call the most basic code.
Here's the code that used to take <1 min to execute but now times-out under Mavericks:
tell application "Finder"
     with timeout of 300 seconds
          set pdfsList to every item in folder "path:to:folder:with:pdfs:" whose name extension is "pdf"
     end timeout
end tell
I'm not sure what to do here, and without figuring out a way to accomplish the same result, I'm dead in the water.
Any help/advice would be much appreciated here. I'd like to avoid reinstalling the OS, but I certainly will give that a shot if necessary.

You should look at the System Events.app dictionary. There are a few subtle differences: e.g. the root object for file system scripting is disk item not item, and SE prefers POSIX paths to HFS paths (where the Finder will only accept HFS paths). SE doesn't have a duplicate command, its move command is sketchy, it doesn't have any acceess to Finder labels, it lacks the 'entire contents' property of folders so that you have to do recursive folder searches for embedded objects. But even so it's much faster and more stable. Easiest thing to do when you need to access a Finder-specific function is collect HFS paths from SE and pass them to the Finder, e.g.:
tell application "System Events"
          set pdfsList to path of every item in folder "path:to:folder:with:pdfs:" whose name extension is "pdf"
end tell
tell application "Finder"
  reveal pdfsList
end tell

Similar Messages

  • Applescript find/change problem

    I have some text which needs to be styled in InDesign CS4 which has a bunch of extraneous tags ( eg. <b>, <i>, etc.). I have customised the FindChangeList.txt file that supports the FindChangeByList.applescript file to do things like:
    {find what:"<i>"}
    {change to:"^S"}
    which can then be picked up by a nested style. All good so far.
    Problem: the applescript will just not 'see' the strings <b> or </b> in FindChangeList.txt. It treats them like they aren't there. I can do it using the find/replace within InDesign, it works fine there, but my problem is that I have hundreds of pieces of copy to import and I'd like to automate as much as possible. Using GREP has the same effect, ie. works in find/replace within InDesign, but not with applescript.
    Any help would be greatly appreciated as this is really killing me at the moment. Thanks!
    Content of FindChangeList.txt follows. The command in the final line works, the command in the second-last line doesn't.
    (FYI the second line of code contains 'InDesign CS3' regardless of whether I use CS3 or CS4. I guess they didn't update the file)
    --FindChangeList.txt
    --A support file for the InDesign CS3 AppleScript FindChangeByList.applescript
    --This data file is tab-delimited, with carriage returns separating records.
    --The format of each record in the file is:
    --findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
    --Where:
    --<tab> is a tab character
    --findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
    --findProperties is a properties record (as text) of the find preferences.
    --changeProperties is a properties record (as text) of the change preferences.
    --findChangeOptions is a properties record (as text) of the find/change options.
    --description is a description of the find/change operation
    --Very simple example:
    --text          {find what:"--"}          {change to:"^_"}          {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}          Find all double dashes and replace with an em dash.
    --More complex example:
    --text          {find what:"^9^9.^9^9"}          {applied character style:"price"}          {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}          Find $10.00 to $99.99 and apply the character style "price".
    --All InDesign search metacharacters are allowed in the "find what" and "change to" properties.
    text          {find what:"<b>"}          {change to:"^S"}          {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}          Find all bold and replace with non-breaking space.
    text {find what:"<i>"} {change to:"^S"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find all italics and replace with non-breaking space.

    You probably should post this in the ID Scripting forum. Here's an example of some simple AppleScript find and changes that might help:
    --find and replace keyboard formating
    tell application "Adobe InDesign CS5.5"
         --first clear the preferences
         set find text preferences to nothing
        set change text preferences to nothing
        --replaces non breaking space with space
        set find what of find text preferences to "^s"
        set change to of change text preferences to "<0020>"
        set myFoundItems to change text
        --replaces soft return with return
        set find what of find text preferences to "^n"
        set change to of change text preferences to "^p"
        set myFoundItems to change text
        --replaces return space with return
        set find what of find text preferences to "^p<0020>"
        set change to of change text preferences to "^p"
        set myFoundItems to change text
        --replaces 2 returns with return
        set find what of find text preferences to "^p^p"
        set change to of change text preferences to "^p"
        set myFoundItems to change text
        --replaces return, tab, return with return
        set find what of find text preferences to "^p^t^p"
        set change to of change text preferences to "^p"
        set myFoundItems to change text
        --replaces space, return with return
        set find what of find text preferences to "<0020>^p"
        set change to of change text preferences to "^p"
        set myFoundItems to change text
        --replaces space, space with space
        set find what of find text preferences to "<0020><0020>"
        set change to of change text preferences to "<0020>"
        set myFoundItems to change text
        --replaces 3 tabs with tab
        set find what of find text preferences to "^t^t^t"
        set change to of change text preferences to "^t"
        set myFoundItems to change text
        --replaces 2 tabs with tab
        set find what of find text preferences to "^t^t"
        set change to of change text preferences to "^t"
        set myFoundItems to change text
    end tell

  • How do I create a multiple find and replace for Excel in AppleScript?

    I have a large dataset in Excel that I have to do a multiple find/replace in (changing USPS state abbreviations to their full names). In searching the Microsoft boards--I was directed to use Applescript, and even the documented help with Excel was recommeding this. Unfortunately, there wasn't much help potinting me in the specific direction I needed. Any ideas on how I should write this script?
    Thanks!

    I'm confused as to why Applescript (or any script would be helpful).
    You'd have to type the abbreviation and the full name into the script, the same as just using Find and Replace All. You wouldn't gain anything by using a script. Is there more to this task than you've let on?
    MacTech has an article on converting from VBA to Applescript, but I'm not sure if it would have any ideas on your specific problem: http://www.mactech.com/vba-transition-guide/index-toc.html

  • I have a new mac mini I5 - I cannot find and copy Maverick onto a flash so that I can install on the other 7 iMacs - don't want to download from App store to each machine

    I have a new mac mini I5 - I cannot find and copy Maverick onto a flash so that I can install on the other 7 iMacs - don't want to download from App store to each machine - files too big
    Please assist

    You need to download it on one of the iMacs via App store but not install since after it installs the installation download gets deleted.
    After it is downloaded you can copy to a USB device. You can also make a bootable USB install device by:
    downloading and using DiskMaker X

  • 2 finger scroll doesnt work in Finder after Mavericks update. Macbook pro seems slow and less responsive after the update.

    2 finger scroll doesnt work in Finder after Mavericks update. Macbook pro seems slow and less responsive after the update.

    nateshns wrote:
    2 finger scroll doesnt work in Finder after Mavericks update.
    In any particular app, or all of them?

  • How can I find my lost pdfs in ibooks (ios7 and mavericks) after updating both?

    I have lost all 60-70 of my PDF files, which I have collected over the last 5 years.
    They are mainly surgical technique manuals for my job.
    THey disappeared after I updated to ios 7 and Mavericks. I don't know at which point they were lost.
    I restored my phone to the icloud backup made just after updating the ios (before Mavericks update.
    All PDF titles appearedon the shelf - but I couldn't open them. A download line was beneath each of them, suggesting they would be downloaded at some point.
    After an hour or so of my phone updating and reloading all the apps, I reopened ibooks. The title were there but they disappeared before my eyes.
    Perhaps it was syncing with ibooks in the MAc, where the PDFs no longer appear.
    I really need these back. They are irreplaceable.
    Any ideas?
    Thanks

    Tom, I was desperately hoping your solution would work for me, but although I can find the Library folder as per your instructions, mine does not have a "Containers" sub-folder. Any idea on what to do from here?
    It's unbelievably bad that updating to iOS7 wipes out iBooks and leaves you hanging. (I didn't want to upgrade, but tried to put more music onto my iPad2 and it instead upgraded my OS. Now, I can't get music onto my iPad2 for some reason I haven't figured out yet, and just discovered yesterday that my iBook PDFs have disappeared. I kept my Canon Powershot UserGuide on there so would have access to how to do things with my camera while on a trip.)
    I hate everything about iOS7 (and even joined the Facebook page "I hate iOS7"). Thanks for any ideas you have for us poor folks who spend good money and get no communication or instruction whatsoever when Apple wields its big stick.
    10 MINUTES LATER: Found them! In iTunes/iTunes Music/Books (as if Books was the name of an Artist).
    However, when I try what the previous person did -- right-click and choose "Open in iBooks," I do not get iBooks as an option for opening. Tried "Other" but it just gave me my iMac apps, so nothing like iBooks was available.
    So, I'm making progress but don't know what to do next. Thanks for any help.

  • Finder freezes maverick must restart over and over

    Since the upgrade to maverick my finder and every thing else will freeze and the whirligig wont stop turning .
    I am at my wits end having to force restart every five minutes. I use this for work and I can't afford to waste so much time rebooting that takes 5 minutes.
    The force quit window also freezes so nothing gets quit and have to restart.
    I don't know if all the restarts is damaging but today I must have 100 times.
    Does anyone know what to do to fix this? It should not happen. I had to post this using my phone .....

    Hello,
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    If that doesn't help Reinstall the OS.
    Or,,,
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • From about this Mac -Storage, my only HDD is full. there are 144 GB on Backups. How find and delete it. Macbook pro running Maverick OS X.

    Hi,  From about this Mac, my only HDD is full. When I have clicked and opened Storage screen when I've saw that there are 144 GB on Backups. I don't know which backup is it. and I really need help to find and delete it. I have Macbook pro running Maverick OS X.
    I have a external HDD for time machine, but this backup I didn't know yet.
    Please pleople... someone could help me?  I'm in troubles.
    Sandro

    Linc Davis,  According below:  could I delete those snapshots from MobileBackups folder?   would it solve my problem? ( if I want not my HDD 80% full)     - Thank you a lot in advance.
    Ordinarily, the best way to view your Local snapshots is via the normal Time Machine display, perquestion #15.  If for some reason that's not working, you can see them via the Finder. 
    From a Finder menubar, select Go > Go to Folder and type /Volumes in the prompt, and select theMobileBackups folder.   You'll see the same structure as for Time Machine backups on a separate volume:  a Backups.backupdb folder containing a folder for your Mac, which contains a time-stamped folder for each snapshot.  Inside each of those is a folder for each disk/partition that was backed-up, containing the same folder structure as on the original, with the contents as of the time of the backup. 
    Note that nothing in the size column is meaningful (if you Get Info on the MobileBackups folder, for example, it will show the total amount of space on the drive it's on!   It will show dashes for the Backups.backupdb folder, or any of the dated snapshot folders).

  • Using applescript for Find and Replace All in Pages 2.0

    i saw that Pages 2.0 is scriptable
    i try to create a script for merge use to find and replace all occurence of a certain string using a script but Pages doesn't seems to respond to "Find" even using "System Events"
    how can i do to use this function with a script
    Thanx for any help
    S.B.
    ibook G3   Mac OS X (10.4.6)  

    OK, here's another example. This one gets the text as a string and uses the offset property to find "[", presuming it to be a merge delimiter. (Pages' text doesn't support "offset of").
    One failing of this scheme is that the offsets are incorrect if you have inline objects (pictures, shapes, tables, etc.). While it is probably possible to compensate for them, that's a trickier proposition.
    <PRE>-- Example merge replacements:
    property mergeText : {"[name]", "John Smith", "[address]", "1234 Anystreet"}
    on lookup(mergeWord)
    set theCount to count of mergeText
    repeat with x from 1 to theCount by 2
    if item x of mergeText = mergeWord then
    return item (x + 1) of mergeText
    end if
    end repeat
    -- If merge field is not found, delete it (replace it with the empty string)
    return ""
    end lookup
    tell application "Pages"
    repeat
    tell body text of document 1
    -- Get text as a string so that "offset of" can be used.
    set allText to it as string
    set startOffset to offset of "[" in allText
    if (startOffset = 0) then
    exit repeat
    end if
    set endOffset to offset of "]" in allText
    select (text from character startOffset to character endOffset)
    end tell
    set mergeWord to contents of selection
    tell me to lookup(mergeWord)
    set replacement to result
    set selection to replacement
    if (replacement is "") then
    -- Get rid of extra whitespace (space or return)
    -- Do it in a "try" block to handle edge cases at start or end of text.
    try
    set theSel to (get selection)
    set ch1 to character before theSel
    set ch2 to character after theSel
    if ((ch1 is " " or ch1 is return) and (ch2 is " " or ch2 is return)) then
    select character after theSel
    delete selection
    end if
    end try
    end if
    end repeat
    end tell</PRE>
    Titanium PowerBook   Mac OS X (10.4.6)  

  • Applescript Issue with Mavericks: Security?

    Hi - I'm having an Applescript Problem with Mavericks:
    For years, I've been running EyeTV on my mac. After recording a TV show, EyeTV calls a script called "RecordingDone.scpt".
    I've modified this script to do what I need it to do. It's automatically run by EyeTV (using a process called "TriggeredScriptBridge", which I can observe via Activity Monitor). I can also execute the script directly from the Finder, as an Applescript app, and also by running the script via Applescript Editor.
    Prior to Mavericks, both EyeTV and manual execution of the script ran correctly.
    With Mavericks, running the script executes correctly when run manually. But whenever EyeTV executes the script, it fails. The failure occurs when the script tries to create a new folder or copy a file.
    For example, this code runs correctly when initiated manually but fails when initiated by EyeTV:
      if (exists folder fileLocation) is false then
      try
          make new folder at alias ExportLocationTV with properties {name:ParsTitle}
                my log_event("DEBUG:  Folder successfully created")
      on error
            my log_event("DEBUG:  couldn't make folder!")
      end try
      end if
    Same thing with this code (manual execution works, not so when called by EyeTV):
    try
          do shell script shellCommand -- do the copy
      my log_event("DEBUG:  copied successfully")
      on error
           my log_event("DEBUG:  failed to copy!")
      end try
    My guess is that Mavericks isn't letting EyeTV call a script that writes to disk. Is that what's happening? If so, how do I make things work again? Or if I'm wrong with my guess, anybody have any idea what might be screwing up here?
    Thanks much....

    If this application is from the App Store, it is running in a sandbox and needs to have the proper entitlements. 
    No, the app is not from the App Store. But perhaps the developers have incorporated sandboxed operation in a recent update? (I don't know much about sandboxing and its effects yet...)
    I am guessing that since scripts are supported by the application that the developers have set the appropriate entitlement for that, but the user running the application will still need to authorize writing to a location outside of the sandbox.
    Your script is not using a security-scoped bookmark or putting up a file dialog - how are you selecting the destination folder?
    OK, some of this is new to me (e.g. security-scoped bookmark), so please bear with me if my responses don't make immediate sense.
    The EyeTV app developers have put a few calls to external scripts that can be run when certain events occur within the app (for example, "RecordingStarted.scpt" and "RecordingDone.scpt"). The EyeTV app initiates a process named "TriggeredScriptBridge" that calls the scripts. These scripts are intended to be modified by users to perform tasks upon the TV recording created by EyeTV. They have always worked fine before Mavericks.
    Under Mavericks, when the script is run via a call from the EyeTV app, the destination folder(s) are selected by hard-coded links I placed within the script. When I run the script manually, I present a Choose Folder dialog for more flexibility.
    So, under Mavericks, do I need to do something different in my scripts to allow access to the disk to create folders, etc.? Or is this something that I can't do because it's the responsibility of the app itself (EyeTV)? Or am I not understanding what's going on here (the most likely scenario... )

  • I to use iphoto library manager to save corrupted iphoto and each time it saves some and the first time it brings up iphoto, iphone goes into "not responding" mode.  Using mac book pro, iphoto 9.5.1, and maverick 10.9.2.

    I've had issues with my iPhoto "not responding" and as a result I am attempting to save my photos to an external hard drive using iPhoto library Manager but each time I start the program it saves some, and then when it starts iPhoto, iPhoto then goes into not responding mode. Using mac book pro, iphoto 9.5.1, and maverick 10.9.2. I have completed all of the photo library first aid steps several times, but it makes no difference, iphoto eventually goes to "not responding."  Initial issues started with Time Machine back ups stopping because of iphoto. Thanks......

    Do you have a back up?
    If you're just trying to recover the photos you can do that much more simply:
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Originals' or 'Masters'. (varies according to the version of iPhoto)
    Your photos are inside - these are the originals as imported from your camera.

  • Folder action to find and replace text and change line feeds

    I want to use a folder action to find and replace text and change Mac carriage returns to DOS line feeds inside text files.
    The text to be replaced is: "/Users/wim/Music/iTunes/iTunes Music/Music" (without the quotes)
    This text has to be removed (i.e. replaced by an empty string)
    The text occurs many times within each file.
    The files are playlists exported from iTunes in the M3U format (which are text files). They contain Mac carriage returns. These need to be changed to DOS line feeds.
    I have found the following two perl commands to achieve this:
    To find and replace text: perl -pi -w -e 's/THIS/THAT/g;' *.txt
    To change carriage returns to line feeds: perl -i -pe 's/\015/\015\012/g' mac-file
    I know that it's possible to make a folder action with Automator that executes a shell script.
    What I want to do is drop the exported playlists in M3U format in a folder so that the folder action will remove the right text and change the carriage returns.
    My questions are:
    Is it possible to make a folder action that executes command line commands instead of shell scripts?
    What is the correct syntax for the two commands when used in a folder action shell script? Especially, how do I escape the slashes (/) in the string to be removed?
    Thanks for your help

    Ok, I've include an applescript to run a shell command. The applesript command quoted form makes a string that will end up as a single string on the bash command line.  Depending on what you want to do, you may need multiple string on the bash command lines.  I've included some information on folder actions.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set desktopPath to (path to desktop) as string
        log "desktopPath = " & desktopPath
        set unixDesktopPath to POSIX path of desktopPath
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run
    How to set up a folder action.
    1) right click on folder. click on Enable folder actions
    2) Place script in
    /Library/Scripts/Folder Actions Scripts
    3) right click on folder. click on attach folder action
    pick your script.
    Create a new folder on the desktop & try.
    You can put multiple folder actions on a folder. There are other ways of doing this.
    Here is my test script:
    on adding folder items to this_folder after receiving dropped_items
        repeat with dropped_item_ref in dropped_items
           display dialog "dropped files is " & dropped_item_ref & " on folder " & this_folder
        end repeat
    end adding folder items to
    How to  make the text into an AppleScript program.
    Start the AppleScript Editor
    /Applications/AppleScript/Script Editor.app
    In Snow Leopard it's at: /Applications/Utilities/AppleScript Editor
    Copy the script text to the Applescript editor.
    Note: The ¬ is typed as option+return.  ption+return is the Applescript line continuation characters.
    You may need to retype these characters.
    Save the text to a file as an script and do not check any of the boxes below.

  • Batch Edit Multiple HTML files | Find and Replace

    Hi,
    I would like to use Automator to automate (I know that sounds redundant) the following process.
    1. Take a group of html files
    2. Open each file so it can find and replace the script of any image folders
    Example:
    Change: img src="home_files/photo.jpg" to img src="images/photo.jpg"
    3. Save & Close each file
    I assume this this would have to be done in either AppleScript or Cocoa.
    Any help would be greatly appreciated.
    Thanks in advance.

    you most definitely don't need Cocoa for something like that. if all you need is a straightforward search and replace in a bunch of html files you can easily do this with a shell script. If you need some more involved search and replace you have to explain what it is exactly that you want.
    to automate direct search and replace you can do something along the following lines in automator
    1. get selected finder items (this will select your html files)
    2. run shell script action with input passed as arguments
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    for f in "$@"
    do
    fl=`echo "$f"`
    sed 's%home_files/photo.jpg%images/photo.jpg%g' $f > /users/$USER/.tmp.txt
    cat /users/$USER/.tmp.txt > "$fl"
    done
    rm /users/$USER/.tmp.txt</pre>

  • TS4001 How can I share Safari bookmarks between two iCloud accounts using IOS 7 and Mavericks?

    Before iOS 7 and Mavericks, we were able to share Safari bookmarks between all of our devices.  My wife had the primary iCloud account which was setup to share bookmarks, contacts, calendars and reminders.  A secondary iCloud account was setup on my phone for only my email.  Each phone had our private email accounts segregated and we shared all the bookmarks, contacts, calendars and reminders.  When I saved a bookmark on my phone, I could see it later on our iMac or iPad.  Now only my wife can sync bookmarks between her phone and the iMac or iPad.  This *****!!  This worked beautifully before we upgraded to the latest versions of OS & iOS.  Is there a work around or a new way to set things up?  I don't want to be stuck reading Safari on my phone when I have a 24" iMac sitting in the living room.  I don't want to see all of my wife's email on my phone either.  Do we need three iCloud accounts now?  One main for sharing and two separate accounts for only email?  Need help!  Any suggestions would be appreciated, thanks.

    David,
    Thanks for the reply.  That's how I set it up originally.  Although the new iOS 7 update lost some functionality.  I found the following on the TUAW website.  The Safari Bookmarks and Find My Phone options have been removed from the secondary iCloud accounts options.  This is the problem.  Everything worked great before we updated.  I guess "new way" consolidates the iCloud accounts better with Maverick?  Now I will have extra documents on my phone that I don't need.  We will both have to share the same iCloud storage and backup space too.  Have to try it out and see how it works. Thanks.
    http://www.tuaw.com/2013/09/19/how-to-use-multiple-apple-ids-in-ios-7/

  • Lion and Mavericks (strange things going on)

    Hello everybody,
    I have a 2010 (white) macbook,
    I just installed Mavericks and updated it to 10.9.3. The macbook runs both 10.7 Lion (my main and most important partition) and 10.9, it's a dual boot.
    My partition with Lion is called ''Macintosh HD'' and the one with Mavericks is called ''OS X Mavericks''. (Mavericks is startup partition)
    Now i'm using both together some strange things are happening. First off when i opened Finder in Mavericks it only showed ''Macintosh HD'' like that was the partition Mavericks was installed on, now i've added the right partition in the sidebar of the finder (OS X Mavericks). This was already weird.
    When i went back into Lion everything was fine but it stated indexing ( i guess the mavericks partition ) this annoyed me because i want them to be seperate.
    So I went to settings > Spotlight > Privacy and added ''OS X Mavericks'' so Lion stopped indexing that part of my harddrive.
    When I went into Mavericks again, the spotlight on Mavericks was indexing and then randomly stopped. I went in to Setting > Spotlight and Privacy again.
    Only now in Mavericks. Guess what: in privacy ''OS X Mavericks'' partition was added.
    Is Mavericks reading from the wrong partition??
    Is spotlight running between two OS X versions?
    How can i make sure Mavericks is reading info from the right partition?
    It would be very nice if someone could tell me more about this..
    Thanks in advance !!

    I remember when Lion first came out, I installed a second Lion partiton and had issues similar to this. The MAS failed to work at all in the new Lion partition until I removed the original.
    I suspect there is something with Lion that only likes one OS X per drive.
    You might need to install Mavericks on an external drive rather than the second partition.

Maybe you are looking for