Apple Script error -10006

Hello guys, I have an big Problem with my Programm in Apple script...
Everything of it works until a simple "duplicate" command.  Then I will get error 10006 here is the script:
ps: I use "x" for folder name where I get "minecraft.jar"
tell application "Finder"
  --Ermitteln des Ordner "Versionen" welcher sich im Ordner "Resources befindet"--
          set i to (path to me) as string
          set ii to (container of item i) as text
          set theFolder to (container of folder ii) as text
          set Versionen to folder "Versionen" of folder "Resources" of folder "Contents" of file i
  --Application Support definieren--
          set AppSupp to (path to application support from user domain) as text
  --Einleitende Worte für das Programm--
          display dialog "Willkommen im automatischen Versionen-Wechsel Programm für Minecraft. Bitte wählen Sie aus der folgenden Liste die Version, wechle Sie installiert haben wollen. -Ich weise darauf hin, dass die benützung auf eigene Gefahr ist."
  --Auswahl der Version--
          set liste to choose from list {"Vollversion 1.2.5", "Vollversion 1.2.3", "Vollversion 1.1", "Vollversion 1.0.0", "Beta 1.9 Pre 6", "Beta 1.8.1", "Beta 1.8", "Beta 1.7.3", "Beta 1.6.6", "Beta 1.5_01", "Beta 1.4_01", "Beta 1.3_01", "Beta 1.2_02", "Beta 1.1_02", "Beta 1.0"}
          if liste is {"Vollversion 1.2.5"} then set x to "v_1.2.5"
          if liste is {"Vollversion 1.2.3"} then set x to "v_1.2.3"
          if liste is {"Vollversion 1.1"} then set x to "v_1.1"
          if liste is {"Vollversion 1.0.0"} then set x to "v_1.0.0"
          if liste is {"Beta 1.9 Pre 6"} then set x to "b_1.9 Pre 6"
          if liste is {"Beta 1.8.1"} then set x to "b_1.8.1"
          if liste is {"Beta 1.8"} then set x to "b_1.8"
          if liste is {"Beta 1.7.3"} then set x to "b_1.7.3"
          if liste is {"Beta 1.6.6"} then set x to "b_1.6.6"
          if liste is {"Beta 1.5_01"} then set x to "b_1.5_01"
          if liste is {"Beta 1.4_01"} then set x to "b_1.4_01"
          if liste is {"Beta 1.3_01"} then set x to "b_1.3_01"
          if liste is {"Beta 1.2_02"} then set x to "b_1.2_02"
          if liste is {"Beta 1.1_02"} then set x to "b_1.1_02"
          if liste is {"Beta 1.0"} then set x to "b_1.0"
  --Ist Minecraft schon Installiert? Wenn Ja dann löschen--
          if folder "minecraft" of folder AppSupp exists then
                    delete folder "minecraft" of folder AppSupp
          end if
  --MinecraftVorlage entpacken--
          open file "minecraft.zip" of Versionen
  --Pause--
  delay 1
  --Finder Fenster schließen--
  close Finder window 1
  --Vorbereiten der MinecraftVorlage--
duplicate file "mincraft.jar" of folder x of Versionen to folder "bin" of folder "minecraft" of Versionen.
Could anyone say me what's wrong with this line?
  --Installieren--
          duplicate folder "minecraft" of Versionen to AppSupp
  --Pause--
  delay 1
  --Temporäre Dateien löschen--
          delete folder "minecraft" of Verionen
  --Alles Richtig?--
          if folder "minecraft" of folder AppSupp exists then
                    display dialog "Die Installation von Minecraft wurde erfolgreich abgeschlossen!" with title "MC-Installer"
          else
                    display dialog "Es ist leider ein unerwartetes Problem bei der Installation vorgelaufen." with title "MC-Installer"
          end if
end tell
Error msg:
tell current application
  path to current application
                    --> alias "Macintosh HD:Users:manuelfederanko:Desktop:VersioChanger.app:"
end tell
tell application "Finder"
          get container of item "Macintosh HD:Users:manuelfederanko:Desktop:VersioChanger.app:"
                    --> "Macintosh HD:Users:manuelfederanko:Desktop:"
          get container of folder "Macintosh HD:Users:manuelfederanko:Desktop:"
                    --> "Macintosh HD:Users:manuelfederanko:"
          get folder "Versionen" of folder "Resources" of folder "Contents" of file "Macintosh HD:Users:manuelfederanko:Desktop:VersioChanger.app:"
                    --> folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk
  path to application support from user domain
                    --> alias "Macintosh HD:Users:manuelfederanko:Library:Application Support:"
          display dialog "Willkommen im automatischen Versionen-Wechsel Programm für Minecraft. Bitte wählen Sie aus der folgenden Liste die Version, wechle Sie installiert haben wollen. -Ich weise darauf hin, dass die benützung auf eigene Gefahr ist."
  --> {button returned:"OK"}
          choose from list {"Vollversion 1.2.5", "Vollversion 1.2.3", "Vollversion 1.1", "Vollversion 1.0.0", "Beta 1.9 Pre 6", "Beta 1.8.1", "Beta 1.8", "Beta 1.7.3", "Beta 1.6.6", "Beta 1.5_01", "Beta 1.4_01", "Beta 1.3_01", "Beta 1.2_02", "Beta 1.1_02", "Beta 1.0"}
                    --> {"Beta 1.8.1"}
          exists folder "minecraft" of folder "Macintosh HD:Users:manuelfederanko:Library:Application Support:"
  --> false
          open file "minecraft.zip" of folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk
  close Finder window 1
                    --> {}
          copy file "mincraft.jar" of folder "b_1.8.1" of folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk to folder "bin" of folder "minecraft" of folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk
                    --> error number -1728 from file "mincraft.jar" of folder "b_1.8.1" of folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk
Ergebnis:
error "„Finder“ hat einen Fehler erhalten: „folder \"bin\" of folder \"minecraft\" of folder \"Versionen\" of folder \"Resources\" of folder \"Contents\" of application file \"VersioChanger.app\" of folder \"Desktop\" of folder \"manuelfederanko\" of folder \"Users\" of startup disk“ kann nicht als „file \"mincraft.jar\" of folder \"b_1.8.1\" of folder \"Versionen\" of folder \"Resources\" of folder \"Contents\" of application file \"VersioChanger.app\" of folder \"Desktop\" of folder \"manuelfederanko\" of folder \"Users\" of startup disk“ gesetzt werden." number -10006 from folder "bin" of folder "minecraft" of folder "Versionen" of folder "Resources" of folder "Contents" of application file "VersioChanger.app" of folder "Desktop" of folder "manuelfederanko" of folder "Users" of startup disk

path to resource is straightforward.  the command:
path to resource "filename.xxx"
will return an alias to /path/to/your app/Contents/Resources/filename.xxx, automatically accounting for placement of the app file in the file system.  use the in directory parameter if you want to specify a subfolder of the resources folder.  The only tricky thing about it is that when you run the script from the script editor it may think the currently running app is the script editor, not your app, and swo return a path to script editor's resource folder.

Similar Messages

  • Apple script errors. What can i do?

    Hi,
    i've been getting repeated Apple script errors for 2 different programs. The first is for FLV2iTunes. Its a media converter. The errors is:
    AppleScript error GrowHelperApp fot an error: A""" can't got after this class name (-2740)
    The other is for a program called visual hub and it says:
    Stack overflow (-2706)
    Are they related? What can I do? How do i identify and or fix the problem?
    I've tried deleting the plist files but that hasn't fixed anything

    The first is a syntax error that looks like a misplaced quote, and the stack overflow error can be caused by creating a list or saving properties that are too large. WIthout actually seeing the script(s) no one here will be able to tell.

  • Very Slow and Script Errors

    Contribute 6.5 is very slow to publish new content to our site www.mrii.ie, even bringing up a page for editing is slow. So far I have:
    Tested the the FTP settings using passive and active connections.
    Using an external FTP program, downloading from the site is very quick 2. I checked all the file permissions on the server and they are correct. In fact Contribute will publish the changes eventually, just very slowly prior to the actual upload which seems pretty quick.
    I also used a plain page with a small amount of text and again the pre-processing seems slow.
    I removed the temporary sites and configuration folders and still no change.
    I created a new connection.
    As an aside, how do I disable script errors in the Contribute browser window?

    OK, found it.  This fixed my performance issue.
    https://discussions.apple.com/thread/2536941
    This fixed my Genius issue:
    Turned Genius off
    Closed iTunes
    Launch Safari
    Preferences/Security/Cookies
    delete the apple.com entries

  • Script error - "photoshop is undefined"

    I have been having problems working from Bridge CC to Photoshop CC and also Lightroom to Photoshop CC on my Mac 10.9.2.
    These are the scripting errors I have been getting:
    1. Trying to open a DNG file from Lightroom into Photoshop
    SCRIPT EXECUTION ERROR Sat Apr 19 14:54:28 2014
    Error in Line 92: photoshop.openFromLightroom ( file, /* required. path to file to open */ photoshop is undefined
    2. Trying to open images from Bridge into Photoshop
    SCRIPT EXECUTION ERROR Sat May 10 15:13:48 2014
    Error in Line 1: photoshop.loadFilesIntoStack ([new File ("~/Pictures/2014.05.10_001/img_001.jpg"), new File ("~/Pictures/2014.05.10_001/img_002.jpg"), new File ("~/Pictures/2014.05.10_001/img_003.jpg")]); photoshop is undefined
    I can open a DNG file from Lightroom to Photoshop as a smart object, but it will not do a simple file transfer.
    I have also flattened my Mac, reinstalled the operating system, reinstalled the Adobe CC tools and it still does not work.
    I have also checked permissions on appropriate folders and files. It is like my old Windows days where an application path of a program is not correctly defined in the Windows registry.
    Help would be appreciated. Right now I have three Adobe products that have little integration between them.
    Thanks
    Randy

    OK, I found the solution to my problem. This is weird.
    I have struggled getting the Adobe products to work together. I have flattened my Mac system twice, reinstalled Adobe products and it never fixed my problem. I was a rare instance in the Adobe Forum where Adobe products would not work together.
    To solve the problem, I decided to flatten my hard drive again and reinstall Adobe products again. Lightroom CC, Photoshop CC and Bridge CC. Finally this time the Adobe products all of a sudden started working together.
    Next, when I plugged my main external hard drive back in, the Adobe products quit working again. I tried plugging another external hard drive in and Adobe products worked OK. So I figured that the one hard drive was causing the problem.
    Here is why it was causing the problem:
    Apple Mac OS X has a folder called LIBRARY at the system level that contains all the support files needed for the operating system.
    Apple Mac OS X also has a folder called LIBRARY at the user level that contains all of the support files needed for user installed applications.
    I has an external USB drive that I named LIBRARY. Whenever I plugged that in, Adobe saw it and for some reason thought it was an official LIBRARY drive that had information that Adobe needed. Needless to say, there was no data Adobe could use. Adobe was faked out by the name of an attached USB drive and crapped out when Adobe products needed to integrate.
    So I renamed the USB drive to LIBRARY MAIN and all the Adobe products started working together.
    So the moral of the story is that either users need to quit naming external drives to LIBRARY or Adobe needs to quit looking at external hard drives for needed runtime information.
    I hope this helps.
    Randy

  • Tons of Script Errors and Slow Redraw

    I recently setup CS 5.5 with Bridge 4.1.0.54 on a new MacBook Pro.
    When I launch Bridge I get the following messages:
    I'm confident of a few things. First, it's obviously somewhat related to this issue:
    http://forums.adobe.com/message/3083307
    Second, it has nothing to do with CFS or Samba shares.
    Lastly, the error has something to do with the output module script- if I startup without it on, no errors.
    Currently I have my MBP setup with two drives. A SSD for the system software and a second SATA drive for content. All my system software is on the SSD boot drive, however, my users folder is split between the two. Everything but ~/users/xxx/library is symbolicly linked on the second drive.
    If you look closely at the thread referenced above, all the errors are the same except for the "could not create" error. In the thread, it lists a specific user, my error lists Volumes/Null/...
    Here is what I've tried so far:
    Reset the app
    Trashed the prefs
    Started up w/o scripts
    reinstalled the entire CS 5.5 Suite after Uninstalling and using the cleaner tool
    To add insult to injury, When the output script is off and bridge does load, it does it painfully slow to the point where it is not usalbe. It is also having a ton of redraw issues.
    Any advice?

    I think I may have found a workaround.
    I've been racking my brain over the past few days to figure this one out. I've tried at least a dozen permsissions fixes, both through the apple utility and manually. I've reinstalled both bridge and CS 5.5 three times using the cleaner script and a fresh install. NOTHING.
    So I went back to the original error message:
    One thing I noticed was that everytime Bridge was starting, it created a folder in /volumes called "null". I checked three other macs setup the same was as mine and NONE of them created this folder during bridge startup.
    I still have not figured out why my laptop is doing this.
    However, I looked at the error and it seemed that bridge was looking for a path that didn't exists, which was /volumes/null/Adobe/Adobe Bridge CS5.1/Adobe Output Module/Mediagallery
    the path Adobe/Adobe Bridge CS5.1/... is the same path as my ~/library/application support/... folder for adobe.
    First I created a regular alias to that folder to create the fake path. No dice. Then I tried a symlink to creat the fake path /volumes/null/Adobe/Adobe Bridge CS5.1/Adobe Output Module/Mediagallery
    Voila. Worked like a charm. I can now start up Bridge without any errors, script errors, etc. I also have all the functionality of my Output panel back and I'm able to use it without getting the insufficiant disk space error.
    Now to figure out why Bridge is creating a "Null" folder.

  • Script Error when using IE on my iMac

    Thanks to all the people that helped me with my previous problems.
    I have another problem though. When I'm using IE on my iMac, on about 80% of the pages I go to, it'll say "A script error occured. Some scripts on the affected page may not work correctly. Do you want to continue running scripts on the affected page?" then it asks for yes or no, and i choose yes. Some times the page will open correctly, but sites like www.aim.com will only display the background image, but no text. I can't even see any thing on www.apple.com (I'm using my PC right now). Is there some thing I can download to fix this problem? Thanks.

    Internet Explorer is no longer supported on the Mac. There are numerous alternatives like Wacom Mozilla, Netscape, iCab, Opera which are available for Mac OS 8.6.
    You may though find more and more websites which don't work properly on Mac OS 8.6. Disabling Javascript and Java will make many work better, though some buttons and menus may be missing. This is as much a problem of the webmaster not following the good practices of making the website accessible to all people who use it. http://www.anybrowser.org/ has a great website about writing websites following standards that are usable on all browsers, as well as letters you can write webmasters that aren't able to make their website visible on all browsers.
    Some alternative web browsers I've listed on http://www.macmaps.com/browser.html
    I'd add, Mac OS X has much better support of websites than Mac OS 8.6 or earlier, and if you are finding websites you use frequently don't support any Mac OS 8.6 web browser, it may be time for you to upgrade. The G3/233 iMac's maximum operating system is 10.3.9, though you must upgrade its firmware before attempting to install 10.2 or later.

  • Move a mouse with Apple script

    Hello,
    I need some apple script code to move a mouse to a certain location and then click. If possible could it record the location of the mouse, move it to the pre-assigned coordinates, click, and them move it back to where it was.
    I am doing this so I can use multivid and Qlab to play different videos on different iOS devices. Multivid doesn't seem to let me have a cue list with different videos playing simultaneously.
    I will have my iMac set up with 2 displays, one with Qlab and the other with multivid in full screen.
    Thanks for the help

    Here's another code using rubycocoa you might try.
    _rb_click({|:position|:{30, 10}, |:click|:1, |:restore|:true, |:prep|:false})
    on _rb_click(desc)
            record desc : event descriptor record;
                full spec = {|:position|:pos, |:click|:k, |:button|:b, |:flags|:m, |:restore|:r, |:prep|:p}
                defaults   = {|:position|:{}, |:click|:0, |:button|:1, |:flags|:"", |:restore|:false, |:prep|:true}
                list pos : {x, y} or {}
                    number x, y = x, y global coordinate of position
                    {} denotes current location
                integer k : click count (0, 1, 2 or 3}; 0 denotes only to move mouse and exit
                integer b : button index (1 = left button, 2 = right button)
                string m : modifier flags; e.g. 'ck' = control + command
                    a = capslock
                    s = shift
                    c = control
                    o = option
                    k = command
                boolean r : true to restore original mouse location, false otherwise
                boolean p : true to post preparatory left 1-click event to change UI context, false otherwise
            return list : {x, y} = mouse location at exit
        considering numeric strings
            if (system info)'s system version < "10.9" then
                set ruby to "/usr/bin/ruby"
            else
                set ruby to "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"
            end if
        end considering
        set defaults to {|:position|:{}, |:click|:0, |:button|:1, |:flags|:"", |:restore|:false, |:prep|:true}
        set {|:position|:pos, |:click|:k, |:button|:b, |:flags|:m, |:restore|:r, |:prep|:p} to desc & defaults
        if pos = {} then
            set {x, y} to {"%", "%"}
        else
            set {x, y} to pos
        end if
        if k is not in {0, 1, 2, 3} then error "invalid click count: " & k number 8000
        if b is not in {1, 2} then error "invalid button index: " & b number 8000
        if m = "" then set m to "%"
        do shell script ruby & " <<'EOF' - " & x & " " & y & " " & k & " " & b & " " & m & " " & r & " " & p & "
    require 'osx/cocoa'
    include OSX
    if ARGV[0..1] == ['%', '%']
        pt = CGEventGetLocation(CGEventCreate(nil))        # current mouse location
    else
        pt = CGPoint.new
        pt.x, pt.y = ARGV[0..1].map {|a| a.to_f}
    end
    clk, btn = ARGV[2..3].map {|a| a.to_i}
    flg = ARGV[4]
    res, prep = ARGV[5..6].map {|a| a == 'true'}
    etype, mbtn = case btn
        when 1 then [KCGEventLeftMouseDown, KCGMouseButtonLeft]        # [1, 0]
        when 2 then [KCGEventRightMouseDown, KCGMouseButtonRight]    # [3, 1]
        when 3 then [KCGEventOtherMouseDown, KCGMouseButtonCenter]    # [25, 2]
        else raise ArgumentError, %[invalid mouse button: #{btn}]
    end
    mtable = {
        'a'    => KCGEventFlagMaskAlphaShift,
        's'    => KCGEventFlagMaskShift,
        'c'    => KCGEventFlagMaskControl,
        'o'    => KCGEventFlagMaskAlternate,
        'k'    => KCGEventFlagMaskCommand,
    mf = flg.split(//).inject(0) { |mf, x| (m = mtable[x]) ? mf | m : mf }
    src = CGEventSourceCreate(KCGEventSourceStateHIDSystemState)
    tap = KCGHIDEventTap
    pt0 = CGEventGetLocation(CGEventCreate(src))                    # current mouse location
    # move mouse to target location
    ev0 = CGEventCreateMouseEvent(src, KCGEventMouseMoved, pt, 0)    # move mouse
    CGEventPost(tap, ev0)
    if clk == 0
        puts pt.x, pt.y
        exit
    end
    # post preparatory left mouse click to change UI context (optional)
    if prep
        ev1 = CGEventCreateMouseEvent(src, KCGEventLeftMouseDown, pt, KCGMouseButtonLeft)    # mouse left button down
        CGEventPost(tap, ev1)
        CGEventSetType(ev1, KCGEventLeftMouseUp)                    # mouse left button up
        CGEventPost(tap, ev1)
    end
    # post target mouse click(s) with given flags
    ev = CGEventCreateMouseEvent(src, etype, pt, mbtn)                # mouse button down
    CGEventSetFlags(ev, mf)                                            # set flags
    CGEventSetIntegerValueField(ev, KCGMouseEventClickState, clk)    # set click count
    CGEventPost(tap, ev)
    CGEventSetType(ev, etype + 1)                                    # mouse button up
    CGEventPost(tap, ev)
    # restore mouse location (optional)
    if res
        CGEventSetLocation(ev0, pt0)                                # restore mouse location
        CGEventPost(tap, ev0)
        puts pt0.x, pt0.y
        exit
    end
    puts pt.x, pt.y
    EOF"
        set rr to paragraphs of result
        repeat with r in rr
            set r's contents to r as number
        end repeat
        return rr
    end _rb_click

  • Automatic graphic switch via Apple Script

    hi community,
    I would like to change the "Automatic graphics switching" (tick on / tick off) via an Apple Script. I made the following script and it works, except with line "click chckbox 2". Here it ticks the box "Show battery status in menu bar". With "click checkbox 1" it takes the "Lock-Button".
    I would be glad if anybode could tell me the right code for ticking the checkbox "automatic graphics switching" via Apple Script.
    Thanks a lot
    PS: Yes I know that tool gfx Status, but I wanna do this via Apple Script.
    tell application "System Preferences"
      activate
              set current pane to pane "com.apple.preference.energysaver"
              delay 0.5
              tell application "System Events"
                        tell process "Systemeinstellungen"
                                  tell window "Energie sparen"
      click checkbox 2
                                            delay 0.5
                                  end tell
                        end tell
              end tell
      quit
    end tell
    quit

    Hello
    You may try this. It works with MacBook Pro 2010 under 10.6.5.
    tell application "System Preferences"
        set current pane to pane id "com.apple.preference.energysaver"
    end tell
    tell application "System Events"
        tell process "System Preferences"
            tell window 1
                tell group 1 -- automatic graphics switching
                    tell checkbox 1 -- automatic graphics switching
                        click
                    end tell
                end tell
            end tell
        end tell
    end tell
    And the script below will set the option to the specified value.
    set_automatic_graphics_switching(0)
    on set_automatic_graphics_switching(i)
            integer i : status of automatic graphics switching
                0 : off (unchecked)
                1 : on    (checked)
        if i is not in {0, 1} then error "Invalid argument: " & i number 8000
        tell application "System Preferences"
            set _was_running to running
            set current pane to pane id "com.apple.preference.energysaver"
        end tell
        tell application "System Events"
            tell process "System Preferences"
                tell window 1
                    tell group 1 -- automatic graphics switching
                        tell checkbox 1 -- automatic graphics switching
                            if value ≠ i then click
                        end tell
                    end tell
                end tell
            end tell
        end tell
        if not _was_running then
            tell application "System Preferences" to quit
        end if
    end set_automatic_graphics_switching
    Hope this may help,
    H

  • Selecting Different Printer With Apple Script.

    Hi,
    I am currently in the process of making a script to be able to print off labels without the need of much user input (read from a document or e-mail) and I want to be able to set the printer when it goes to the print screen.
    this is the final apple script step in the application cmd+p brings up the 1st print menu the return takes it to the second print menu cmd+v pastes predifind by the user the ammount of copys they want
    on run {input, parameters}
              tell application "Labels & Addresses"
      activate
                        tell application "System Events"
      keystroke "p" using command down
                                  delay 1
      keystroke return
                                  delay 1
      keystroke "v" using command down
                                  delay 1
                                  tell application "System Events"
                                            tell process "Labels & Addresses"
                                                      click (menu item whose description is "Printer")
                                                      click (menu item "Zebra Technologies ZTC GK420t" whose description is "Printer")
                                            end tell
                                  end tell
                                  return input
                        end tell
              end tell
    end run
    now there is chance to change the printer selection twice once in the 1st print screen and once in the 2nd print screen the only problem is im not sure how to apple script to select the right printer from the drop down menu, I got the code from a forum but I think it was old code as when I tested it it was returning errors so I modified it a bit and now it just struggles finding the menu item with description of printer.
    Does anyone know what I would have to use for it to select the right printer? (The Zebra Technologies ZTC GK420t)
    Help would be greatly appricited!
    Thanks,
    Bruce
    P.S. sorry the code is a bit messy!

    Im NOT sure if you have just made this a little over complicated… This works just fine for me. Tested with about a dozen psd layers…
    tell application "Adobe InDesign CS2"
    tell active document
    tell rectangle 1
    tell graphic 1
    tell graphic layer options
    set GLC to count of graphic layers
    repeat with i from 1 to GLC
    if name of graphic layer i ≠ "Blue" then
    set current visibility of graphic layer i to false
    else
    set current visibility of graphic layer i to true
    end if
    end repeat
    end tell
    end tell
    end tell
    end tell
    end tell
    This variant also works as I would have expected too… Retaining visibility from a list…
    tell application "Adobe InDesign CS2"
    tell active document
    tell rectangle 1
    tell graphic 1
    tell graphic layer options
    set On_List to {"Red", "Aqua", "Orange"}
    set GLC to count of graphic layers
    repeat with i from 1 to GLC
    if name of graphic layer i is not in On_List then
    set current visibility of graphic layer i to false
    else
    set current visibility of graphic layer i to true
    end if
    end repeat
    end tell
    end tell
    end tell
    end tell
    end tell

  • OIA Script error

    Hi,
    I'm trying the import functionality provided in OIA 11g. while trying to click the link(rbacx console -> Adminstration -> import/Export)
    Import Users
    Import Resource Metadata
    Import Policies
    Import Roles
    Import Accounts.
    I encounter a script error saying
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; Tablet PC 2.0; MS-RTC LM 8)
    Timestamp: Wed, 15 Jun 2011 05:30:30 UTC
    Message: 's4' is undefined
    Line: 979
    Char: 3
    Code: 0
    URI: http://localhost:8080/rbacx/secure/dwr/engine.js
    I tried the import option from different browser like IE 8 and firefox 3.3.x version. Both the browser is showing the same script error message.
    Has anyone faced the same issue. Help me understand this issue.
    thanks in advance.

    Here is the script error logged
    *11:01:04,599 ERROR [DefaultConverterManager] No converter found for 'java.lang.Class'*
    *11:01:04,599 WARN [CollectionConverter] Conversion error for java.util.ArrayList.*
    org.directwebremoting.extend.MarshallException: Error marshalling com.vaau.rbacx.core.metadata.domain.Namespace: null. See the logs for more details.
    at org.directwebremoting.convert.BasicObjectConverter.convertOutbound(BasicObjectConverter.java:200)
    at org.directwebremoting.dwrp.DefaultConverterManager.convertOutbound(DefaultConverterManager.java:192)
    at org.directwebremoting.convert.CollectionConverter.convertOutbound(CollectionConverter.java:206)
    at org.directwebremoting.dwrp.DefaultConverterManager.convertOutbound(DefaultConverterManager.java:192)
    at org.directwebremoting.extend.ScriptBufferUtil.createOutput(ScriptBufferUtil.java:56)
    at org.directwebremoting.dwrp.BaseCallMarshaller$CallScriptConduit.addScript(BaseCallMarshaller.java:512)
    at org.directwebremoting.extend.EnginePrivate.remoteHandleCallback(EnginePrivate.java:56)
    at org.directwebremoting.dwrp.BaseCallMarshaller.marshallOutbound(BaseCallMarshaller.java:330)
    at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:53)
    at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
    at org.directwebremoting.spring.DwrController.handleRequestInternal(DwrController.java:234)
    at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.concurrent.ConcurrentSessionFilter.doFilterHttp(ConcurrentSessionFilter.java:99)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
    at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
    at org.directwebremoting.convert.MapConverter.convertOutbound(MapConverter.java:191)
    at org.directwebremoting.dwrp.DefaultConverterManager.convertOutbound(DefaultConverterManager.java:192)
    at org.directwebremoting.convert.BasicObjectConverter.convertOutbound(BasicObjectConverter.java:189)
    *... 57 more*
    *11:01:04,599 ERROR [DefaultConverterManager] No converter found for 'java.lang.Class'*
    *11:01:04,599 ERROR [DefaultConverterManager] No converter found for 'java.lang.Class'*
    *11:01:04,599 ERROR [DefaultConverterManager] No converter found for 'java.lang.Class'*
    *11:01:04,609 ERROR [DefaultConverterManager] No converter found for 'java.lang.Class'*
    *11:01:04,609 ERROR [DefaultConverterManager] No converter found for 'java.lang.Class'*
    *11:01:04,609 ERROR [DefaultConverterManager] No converter found for 'java.lang.Class'*
    *11:01:04,609 DEBUG [DebuggingPrintWriter] out(27): var s2={};var s12=[];var s15={};var s30=[];var s31={};var s16={};var s32=[];var s33={};var s17={};var s34=[];var s35={};var s18={};var s36=[];var s37={};var s19={};var s38=[];var s39={};var s20={};var s40=[];var s41={};var s21={};var s42=[];var s43={};var s22={};var s44=[];var s45={};var s23={};var s46=[];var s47={};var s24={};var s48=[];var s49={};var s25={};var s50=[];var s51={};var s26={};var s52=[];var s53={};var s27={};var s54=[];var s55={};var s28={};var s56=[];var s57={};var s29={};var s58=[];var s59={};var s13={};var s14={};var s5={};var s60=[];var s3={};var s63=[];var s9={};var s65=[];var s66={};var s7={};var s67=[];var s68={};var s8={};var s69=[];var s70={};var s10={};var s71=[];var s72={};var s6={};var s73=[];var s74={};var s11={};var s75=[];var s76={};var s64={};var s61={};var s62={};s2.attributeCategories=s12;s2.extendedProperties=null;s2.id=1011;s2.multivalueDelimiter=",";s2.namespaceAttributes=s13;s2.namespaceComments="";s2.namespaceName="MySQL1";s2.namespaceShortName="mysql";s2.originalState=s14;s2.srmCreateDate=null;s2.srmUpdateDate=null;s2.typeLDAP=false;*
    s12[0]=s15;s12[1]=s16;s12[2]=s17;s12[3]=s18;s12[4]=s19;s12[5]=s20;s12[6]=s21;s12[7]=s22;s12[8]=s23;s12[9]=s24;s12[10]=s25;s12[11]=s26;s12[12]=s27;s12[13]=s28;s12[14]=s29;
    s15.attributeCategoryGroup=false;s15.attributeCategoryName="name";s15.attributeCategoryOrder=1;s15.attributes=s30;s15.extendedProperties=null;s15.id=10001;s15['namespace']=s2;s15.originalState=s31;s15.srmCreateDate=null;s15.srmUpdateDate=null;
    s16.attributeCategoryGroup=false;s16.attributeCategoryName="comments";s16.attributeCategoryOrder=2;s16.attributes=s32;s16.extendedProperties=null;s16.id=10002;s16['namespace']=s2;s16.originalState=s33;s16.srmCreateDate=null;s16.srmUpdateDate=null;
    s17.attributeCategoryGroup=false;s17.attributeCategoryName="endpoint";s17.attributeCategoryOrder=3;s17.attributes=s34;s17.extendedProperties=null;s17.id=10003;s17['namespace']=s2;s17.originalState=s35;s17.srmCreateDate=null;s17.srmUpdateDate=null;
    s18.attributeCategoryGroup=false;s18.attributeCategoryName="domain";s18.attributeCategoryOrder=4;s18.attributes=s36;s18.extendedProperties=null;s18.id=10004;s18['namespace']=s2;s18.originalState=s37;s18.srmCreateDate=null;s18.srmUpdateDate=null;
    s19.attributeCategoryGroup=false;s19.attributeCategoryName="suspended";s19.attributeCategoryOrder=5;s19.attributes=s38;s19.extendedProperties=null;s19.id=10005;s19['namespace']=s2;s19.originalState=s39;s19.srmCreateDate=null;s19.srmUpdateDate=null;
    s20.attributeCategoryGroup=false;s20.attributeCategoryName="locked";s20.attributeCategoryOrder=6;s20.attributes=s40;s20.extendedProperties=null;s20.id=10006;s20['namespace']=s2;s20.originalState=s41;s20.srmCreateDate=null;s20.srmUpdateDate=null;
    s21.attributeCategoryGroup=false;s21.attributeCategoryName="AcidAll";s21.attributeCategoryOrder=7;s21.attributes=s42;s21.extendedProperties=null;s21.id=10007;s21['namespace']=s2;s21.originalState=s43;s21.srmCreateDate=null;s21.srmUpdateDate=null;
    s22.attributeCategoryGroup=false;s22.attributeCategoryName="AcidXAuth";s22.attributeCategoryOrder=8;s22.attributes=s44;s22.extendedProperties=null;s22.id=10008;s22['namespace']=s2;s22.originalState=s45;s22.srmCreateDate=null;s22.srmUpdateDate=null;
    s23.attributeCategoryGroup=false;s23.attributeCategoryName="Fullname";s23.attributeCategoryOrder=9;s23.attributes=s46;s23.extendedProperties=null;s23.id=10009;s23['namespace']=s2;s23.originalState=s47;s23.srmCreateDate=null;s23.srmUpdateDate=null;
    s24.attributeCategoryGroup=false;s24.attributeCategoryName="GroupMemberOf";s24.attributeCategoryOrder=10;s24.attributes=s48;s24.extendedProperties=null;s24.id=10010;s24['namespace']=s2;s24.originalState=s49;s24.srmCreateDate=null;s24.srmUpdateDate=null;
    s25.attributeCategoryGroup=false;s25.attributeCategoryName="InstallationData";s25.attributeCategoryOrder=11;s25.attributes=s50;s25.extendedProperties=null;s25.id=10011;s25['namespace']=s2;s25.originalState=s51;s25.srmCreateDate=null;s25.srmUpdateDate=null;
    s26.attributeCategoryGroup=false;s26.attributeCategoryName="ListDataResource";s26.attributeCategoryOrder=12;s26.attributes=s52;s26.extendedProperties=null;s26.id=10012;s26['namespace']=s2;s26.originalState=s53;s26.srmCreateDate=null;s26.srmUpdateDate=null;
    s27.attributeCategoryGroup=false;s27.attributeCategoryName="ListDataSource";s27.attributeCategoryOrder=13;s27.attributes=s54;s27.extendedProperties=null;s27.id=10013;s27['namespace']=s2;s27.originalState=s55;s27.srmCreateDate=null;s27.srmUpdateDate=null;
    s28.attributeCategoryGroup=false;s28.attributeCategoryName="M8All";s28.attributeCategoryOrder=14;s28.attributes=s56;s28.extendedProperties=null;s28.id=10014;s28['namespace']=s2;s28.originalState=s57;s28.srmCreateDate=null;s28.srmUpdateDate=null;
    s29.attributeCategoryGroup=true;s29.attributeCategoryName="name2";s29.attributeCategoryOrder=1;s29.attributes=s58;s29.extendedProperties=null;s29.id=10015;s29['namespace']=s2;s29.originalState=s59;s29.srmCreateDate=null;s29.srmUpdateDate=null;
    s5.attributeCategories=s60;s5.extendedProperties=null;s5.id=1021;s5.multivalueDelimiter=",";s5.namespaceAttributes=s61;s5.namespaceComments="";s5.namespaceName="LDAP1";s5.namespaceShortName="LDAP";s5.originalState=s62;s5.srmCreateDate=null;s5.srmUpdateDate=null;s5.typeLDAP=false;
    s60[0]=s3;
    s3.attributeCategoryGroup=false;s3.attributeCategoryName="General Details";s3.attributeCategoryOrder=1;s3.attributes=s63;s3.extendedProperties=null;s3.id=10031;s3['namespace']=s5;s3.originalState=s64;s3.srmCreateDate=null;s3.srmUpdateDate=null;
    s63[0]=s9;s63[1]=s7;s63[2]=s8;s63[3]=s10;s63[4]=s6;s63[5]=s11;
    s9.attributeCase=0;s9.attributeCategory=s3;s9.attributes=s65;s9.auditable=false;s9.certifiable=false;s9.classifications=null;s9.defaultValue=null;s9.description=null;s9.editType=0;s9.excludedValues=null;s9.extendedProperties=null;s9.hidden=false;s9.id=100011;s9.importable=true;s9.label=null;s9.managed=true;s9.mandatory=false;s9.maxLength=20;s9.maxValue=null;s9.minLength=3;s9.minValue=null;s9.minable=false;s9.multiValue=false;s9.name="uid";s9.namespaceName=null;s9.order=0;s9.originalState=s66;s9.parent=-1;s9.spaceAllowedIn=false;s9.srmCreateDate=null;s9.srmUpdateDate=null;s9.syntax=s4;s9.type="string";s9.typeClass=null;s9.values=null;
    s7.attributeCase=0;s7.attributeCategory=s3;s7.attributes=s67;s7.auditable=false;s7.certifiable=false;s7.classifications=null;s7.defaultValue=null;s7.description=null;s7.editType=0;s7.excludedValues=null;s7.extendedProperties=null;s7.hidden=false;s7.id=100012;s7.importable=true;s7.label=null;s7.managed=true;s7.mandatory=false;s7.maxLength=0;s7.maxValue=null;s7.minLength=0;s7.minValue=null;s7.minable=false;s7.multiValue=false;s7.name="cn";s7.namespaceName=null;s7.order=0;s7.originalState=s68;s7.parent=-1;s7.spaceAllowedIn=false;s7.srmCreateDate=null;s7.srmUpdateDate=null;s7.syntax=s4;s7.type="string";s7.typeClass=null;s7.values=null;
    s8.attributeCase=0;s8.attributeCategory=s3;s8.attributes=s69;s8.auditable=false;s8.certifiable=false;s8.classifications=null;s8.defaultValue=null;s8.description=null;s8.editType=0;s8.excludedValues=null;s8.extendedProperties=null;s8.hidden=false;s8.id=100013;s8.importable=true;s8.label=null;s8.managed=true;s8.mandatory=false;s8.maxLength=0;s8.maxValue=null;s8.minLength=0;s8.minValue=null;s8.minable=false;s8.multiValue=false;s8.name="userPassword";s8.namespaceName=null;s8.order=0;s8.originalState=s70;s8.parent=-1;s8.spaceAllowedIn=false;s8.srmCreateDate=null;s8.srmUpdateDate=null;s8.syntax=s4;s8.type="string";s8.typeClass=null;s8.values=null;
    s10.attributeCase=0;s10.attributeCategory=s3;s10.attributes=s71;s10.auditable=false;s10.certifiable=false;s10.classifications=null;s10.defaultValue=null;s10.description=null;s10.editType=0;s10.excludedValues=null;s10.extendedProperties=null;s10.hidden=false;s10.id=100014;s10.importable=true;s10.label=null;s10.managed=true;s10.mandatory=false;s10.maxLength=0;s10.maxValue=null;s10.minLength=0;s10.minValue=null;s10.minable=false;s10.multiValue=false;s10.name="givenname";s10.namespaceName=null;s10.order=0;s10.originalState=s72;s10.parent=-1;s10.spaceAllowedIn=false;s10.srmCreateDate=null;s10.srmUpdateDate=null;s10.syntax=s4;s10.type="string";s10.typeClass=null;s10.values=null;
    s6.attributeCase=0;s6.attributeCategory=s3;s6.attributes=s73;s6.auditable=false;s6.certifiable=false;s6.classifications=null;s6.defaultValue=null;s6.description=null;s6.editType=0;s6.excludedValues=null;s6.extendedProperties=null;s6.hidden=false;s6.id=100015;s6.importable=true;s6.label=null;s6.managed=true;s6.mandatory=false;s6.maxLength=0;s6.maxValue=null;s6.minLength=0;s6.minValue=null;s6.minable=false;s6.multiValue=false;s6.name="sn";s6.namespaceName=null;s6.order=0;s6.originalState=s74;s6.parent=-1;s6.spaceAllowedIn=false;s6.srmCreateDate=null;s6.srmUpdateDate=null;s6.syntax=s4;s6.type="string";s6.typeClass=null;s6.values=null;
    s11.attributeCase=0;s11.attributeCategory=s3;s11.attributes=s75;s11.auditable=false;s11.certifiable=false;s11.classifications=null;s11.defaultValue=null;s11.description=null;s11.editType=0;s11.excludedValues=null;s11.extendedProperties=null;s11.hidden=false;s11.id=100016;s11.importable=true;s11.label=null;s11.managed=true;s11.mandatory=false;s11.maxLength=0;s11.maxValue=null;s11.minLength=0;s11.minValue=null;s11.minable=false;s11.multiValue=false;s11.name="modifyTimeStamp";s11.namespaceName=null;s11.order=0;s11.originalState=s76;s11.parent=-1;s11.spaceAllowedIn=false;s11.srmCreateDate=null;s11.srmUpdateDate=null;s11.syntax=s4;s11.type="string";s11.typeClass=null;s11.values=null;
    s61.sn=s6;s61.cn=s7;s61.userpassword=s8;s61.uid=s9;s61.givenname=s10;s61.modifytimestamp=s11;
    *dwr.engine._remoteHandleCallback('4','0',[null,s2,s5]);*
    In the below line "11:01:04,609 DEBUG [DebuggingPrintWriter] out(27): ........." i could clearly understand that s4 attribute is not defined, but am unsure while file to do this...

  • RH7 compiled topics won't display and throw an IE (syntax) script error

    Pundits,
    I am using RH 7 to create projects of about 600 topics. My OS is Windows XP Pro 2002, SP-3. My problem is that approximately 10% of the topics in my .chm file prompt an IE script error msg when I, or anyone else, tries to open them.
    Here's the error msg:
    When this window displays, user can click on either Yes or No and topic will display normally; the next time a user attempts to open this topic, same error displays, with same Yes/No click behavior.
    When I look at the html for any of the "bad" topics (i.e., topics that won't display), there is always this one extra line of code, referring to the ehlpdhtm.js file in my project folder:
    <script language="javascript" src="ehlpdhtm.js"></script>
    This line is never in the html of the "good" topics.
    Can anyone shed any light on what's causing this, and what I can do to remedy the situation?
    Thanks in advance.
    Dennis

    William,
    I have gone thru my project now and, as I stated in my May 1 mail to you, I have made duplicates of all of the "bad" topics and all of these new topics are now displaying correctly.
    Now I have a related, but different issue.
    Only one topic is causing that same error msg to display (refer to my original April 27 post: IE script error/syntax error; Line 13, character 1).
    The only topic that throws that error msg is the initial topic that displays when the .chm file is opened (i.e., the topic that is specified as the "Default Topic" in the HTML Help Options window when I click the Generate Layout button in the SSL pod.)
    Furthermore, the topic that throws the error message will only do so if it is the one specified as the Default Topic.
    As an example, if I have the topic Apple specified as the Default Topic, when the .chm file is opened the error msg window will display; when the user clicks either Yes or No to the "Do you want to continue running scripts?" query, the Apple topic will display normally. Each time that topic is selected it will throw the same error msg. window.
    If I go back to my project in RH and change the Default Topic to the Pear topic, re-compile the project, when the .chm file is opened the error msg will display; when you click Yes/No the Pear topic will display normally (until it's selected again). The Apple topic now displays fine at all times.
    This tells me that the problem seems not to be with the Apple topic, as I'd suspected, but with something that's going on with RH and how it displays the initial topic in a compiled project. I think.
    Any ideas on how I can remedy this issue?
    Thanks in advance.
    Dennis

  • Apple Script Inquiry

    We are using a 3rd-party software application on a system running Leopard v10.5.2. The following script is one of a number of scripts that are part of this application:
    <http://home.comcast.net/~tyh/OMScript.jpg>
    When this script is run, the application invokes Apple's "Mail" program, however we have a need to change the email program to invoke "Entourage" instead. Our request is fairly basic -we are seeking instructions on what line(s) to change (tell application "Mail" ??), how to change this script using ScriptEditor and see if the modified script needs to be re-compiled prior to placing it back into commission?
    Thank you in advance to all who offer their advice and expertise.

    Budgie,
    Apologies in advance for our lack of experience in this area, but we tried what you suggested and 5 variations of the original script without success (see actual scripts below):
    Script 1 - Entourage launches successfully, but no new message is created
    Script 2 - Entourage launches successfully, but script error pops up "The variable pathToFile is not defined"
    Script 3 - script does not even launch
    Script 4 - Entourage launches successfully, but no new message is created
    Script 5 - script does not even launch
    Again, this is a photo program where we select one or a number of images and then press the email option. At this point, the script should start by opening Entourage and attaching the image(s) to a blank email; the script should then end and allow the user to add text, title, recipient, send the message.
    We are seeking further guidance. Thank you.
    Script1
    on open theList
    set SendFileList to {""}
    repeat with anItem in theList
    set SendFileList to SendFileList & {anItem as alias}
    end repeat
    tell application "Microsoft Entourage"
    activate
    set newMessage to (make new outgoing message)
    repeat with aFile in theList
    make new attachment at newMessage with properties {file:aFile as alias}
    end repeat
    end tell
    end open
    Script2
    on open theList
    set SendFileList to {""}
    repeat with anItem in theList
    set SendFileList to SendFileList & {anItem as alias}
    end repeat
    tell application "Microsoft Entourage"
    activate
    set theMessage to make new outgoing message with properties {subject:"This is your file", content:"Attached is your file.", recipient:{address:{address:"[email protected]", display name:"I. M. Somebody"}}, attachment:alias pathToFile}
    end tell
    end open
    Script3
    on open theList
    set theList to ""
    set SendFileList to {""}
    repeat with anItem in theList
    set SendFileList to SendFileList & {anItem as alias}
    end repeat
    set SendFileList to "Cassandra:Users:masahiro_takeda:desktop:test1.txt" as alias
    tell application "Microsoft Entourage"
    activate
    set newMessage to make new draft window with properties {to recipients:"email to @ whom ever", subject:"test mail"}
    make new attachment at newMessage with properties {file:SendFileList}
    end tell
    end open
    Script4
    on open theList
    set SendFileList to {""}
    repeat with anItem in theList
    set SendFileList to SendFileList & {anItem as alias}
    end repeat
    tell application "Microsoft Entourage"
    -- set SendFileList to {"Cassandra:Users:masahiro_takeda:desktop:test.txt" as alias}
    -- set SendFileList to {"Cassandra:Users:masahiro_takeda:desktop:test1.txt" as alias} & SendFileList
    activate
    set newMessage to (make new outgoing message)
    repeat with aFile in theList
    make new attachment at newMessage with properties {file:aFile as alias}
    end repeat
    end tell
    end open
    Script5
    on open theList
    tell application "Microsoft Entourage"
    activate
    set newMessage to (make new outgoing message)
    repeat with aFile in theList
    make new attachment at newMessage with properties {file:aFile as alias}
    end repeat
    end tell
    end open

  • Apple Script

    I have been using the following apple Script in a home control program for the last 12 years and it has worked great
    if (status of "Porch Lights, Front") is false and (daylight) is false then
              turnon ("Porch Lights, Front") for 5 * minutes
    end if
    if (status of "Garage Lights") is false and (daylight) is false then
              turnon ("Garage Lights") for 5 * minutes
    end if
    I just switched to another home contgrol program, Indigo and it won't run there, It gives me the following error.
    Script Error                    embedded script: invalid syntax
      Script Error                    around line 1 - "if (status of "Porch Lights, Front") is false and (daylight) is false then"
    I wonder why it won't run now.

    You need to open that application's dictionary and rewrite the script for compatibility. Some applications may not support more than a few basic AppleScript commands.
    (70636)

  • Get AD group membership for apple script

    Hello All,
    I am to create an app that mounts certain network folders with an apple script:
    tell application "Finder" to close every window
    tell application "Finder" to eject (every disk whose local volume is false)
    tell application "Finder"
      tell Finder preferences
      set desktop shows connected servers to true
      set desktop shows external hard disks to true
      end tell
    end tell
    do shell script "killall Finder"
    display dialog "Please enter your network username:" default answer "" with title "Network Login" with icon note
    set username to text returned of result
    display dialog "Please enter your network password:" default answer "" with title "Network Login" with icon note with hidden answer
    set userpass to text returned of result
    mount volume "smb://" & username & ":" & userpass & "@192.168.1.10/teacherread"
    mount volume "smb://" & username & ":" & userpass & "@192.168.1.10/teacherwrite"
    mount volume "smb://" & username & ":" & userpass & "@192.168.1.10/home/" & username
    mount volume "smb://" & username & ":" & userpass & "@192.168.1.10/steps"
    The users are in Active Directory and are in certain groups
    I would like to go one step further and add: if in group teachers, and officestaff: mount teacherread, finance etc
    The macs are not bound to the domain
    Thanks in advance for your help
    Daniel

    Hi Again,
    Another way to look at it might be if error 5014 (don't have permission) try next line
    try
    mount volume "smb://" & username & ":" & userpass & "@dc1/teacherread"
    *if result is error number 5014 goto next command
    end try
    *try
    mount volume "smb://" & username & ":" & userpass & "@dc1/teacherwrite"
    *if result is error number 5014
    end try
    *try
    mount volume "smb://" & username & ":" & userpass & "@dc1/home/" & username
    *if result is error number 5014
    *end try
    *Not sure on syntax
    Thanks
    Daniel

  • Scheduling an Apple Script [eyeTV DVB Update] more...

    Like many other eyeTV Users, I have opted out of the iceTV [Australia] annual subscription, and am using the DVB Program Guide.
    But eyeTV does not support scheduled updates of the DVB Guide, only subscription services [annoying].
    Recently ctzsnooze proposed an Apple Script which if run periodically would update of the eyeTV DVB Program Guide.
    https://discussions.apple.com/thread/6043805
    And a few years ago Camelot proposed a means to schedule a script to run periodically.
    https://discussions.apple.com/thread/673340
    After a little testing, I believe I have refined this script to properly run to a regular schedule.
    Here is a copy of my updated version of Camelot's test routine: Note the following...
    a) the initial date must be set in the future, otherwise the idle loop will run every five seconds [idle return is negative].
    b) use >=, not simply > in the idle loop, otherwise the scheduled run time becomes offset [+5 * minutes in this example].
    c) I found the display notification a really neat way to log progress of the script while testing, and have now incorporated a Notification into my file Script for the eyeTV Program Schedule Update, to confirm it has run once a day, or hour.
    d) Compile then Save As, Application, and Stay open after run handler.  The first time you run it, you will need to authorise it...
    property runTime : missing value
    on run
              set runTime to date "Wednesday, 07 May 2014 13:45:00"
              display notification "Update Script initialised at: " & runTime
              display notification "Time now is: " & (current date)
    end run
    on idle
              if (get current date) ≥ runTime then
                        display notification "Update Script ran at: " & (current date)
                        set runTime to runTime + 5 * minutes
                        display notification "Next execution of Update Script will be at: " & runTime
              end if
              display notification "Script Return Value is: " & (runTime - (get current date))
              return (runTime - (get current date))
    end idle
    Here is an example run...
    And here is my update to Ctzsnooxe's version of the eyeTV DVB Program Guide auto update script, and a copy of the resulting Notifications...
    Delete the display notifications you do not wish to see from the script, once you prove the script.
    property runTime : missing value
    on run
              set runTime to date "Wednesday, 07 May 2014 15:00:00"
              display notification "eyeTV Programs Update Script initialised at: " & runTime
      display notification "Time now is: " & (current date)
    end run
    on idle
              if (get current date) ≥ runTime then
        display notification "eyeTV Programs Updated at: " & runTime
        tell application "EyeTV"
            activate
        end tell
        tell application "System Events"
          tell process "EyeTV"
            keystroke "g" using command down
            delay 1
            click (pop up button 1 of window 1)
            delay 1
            click menu item "Update DVB Program Guide" of menu 1 of pop up button 1 of window "EyeTV Programs"
          end tell
        end tell
        set runTime to runTime + 1 * days
        display notification "Next Update of eyeTV Programs will be at: " & runTime
              end if
              display notification "Script Return Value is: " & (runTime - (get current date))
              return (runTime - (get current date))
    end idle

    Stephen,
    I ran into some scheduling issues after Wake from Sleep, and after some fiddling around, made the following changes.
    This version is set up to run every hour [so I could test error handling, window, wake, and sleep issues]
    -- eyeTVAutoUpdate (Hour) Script:
    -- [for testing, setup to run every hour...]
    -- When proper operation is confirmed,
    --       Set Systems Preferences, Energy Saver, Schedule, Startup or Wake, to
    --       Every Day, at 15:45hr, and
    --       Set eyeTV Programs Update Script to run at 16:00hr every day
    property runTime : missing value
    on run
       set runTime to (get current date)
       set (time of runTime) to 10 * hours
      repeat while runTime < (get current date)
         set runTime to runTime + 1 * hours
      end repeat
      display notification "eyeTVAutoUpdate Script initialised: " & return & (current date)
    end run
    on idle
       try
       tell application "EyeTV"
          activate
          close controller window
       end tell
       tell application "System Events"
          tell process "EyeTV"
             keystroke "g" using command down
             delay 1
             click (pop up button 1 of window 1)
             delay 1
             click menu item "Go to Now" of menu 1 of pop up button 1 of window "EyeTV Programs"
             delay 1
             click (pop up button 1 of window 1)
             delay 1
             click menu item "Update DVB Program Guide" of menu 1 of pop up button 1 of window "EyeTV Programs"
          end tell
       end tell
       display notification "eyeTV Programs Updated: " & return & (current date)
    on error errorMessage number errorNumber
       display notification ("An error occurred: " & errorNumber as text) & return & "Description: " & errorMessage as text
    end try
    repeat while runTime < (get current date)
       set runTime to runTime + 1 * hours
    end repeat
    display notification "Next Update of eyeTV Programs: " & return & runTime
    display notification "eyeTVAutoUpdate Script Return: " & (runTime - (get current date))
    return (runTime - (get current date))
    end idle
    Although I have not yet tested it, simply change the last repeat while loop time interval [now one hour] to suit, say to 8 or 24 hours.
    For example...
    repeat while runTime < (get current date)
       set runTime to runTime + 8 * hours
    end repeat
      repe

Maybe you are looking for

  • Flash 8 crashing

    Hi everyone, My Flash 8 programme is creating problems. Whilst working on an fla, I save my work every five minutes. However, after some time, I get the following message: Could not save as abc.fla. The file may be read-only or is already open in ano

  • Untagged physical object must be assigned to a tagged parent object   ?

    Hi friends , I am using Auto-ID Test tool  as simulattor  of Device Controller  . When i tried to trigger Tag commissioning from AII , I have sent the proper informations like GTIN , Device Controller ID , command etc.,         It is triggering the r

  • Hi, I am running Mac OS X 10.5.

    Hi, I am running Mac OS X 10.5. Can I update to current OSX level? What level ? Snow Lepard? What would the cost be, would it screw with my entire system? Thanks, J

  • Can I still download Final Cut Pro X 10.0.9 update?

    Currently trying to get a bunch of school Macs onto the same version of Final Cut Pro X as we have a few with 10.0.5 installed etc. I would like to get all machines onto version 10.0.9 (running Lion) but haven't been able to find a way to do this. Wh

  • Droid X email not Recognizing Cox email settings

    I am trying to set up my Droid X to recieve my Cox ISP emails and have talked to both Verizon Tech & Cox Tech and neither could figure it out. According to them I was doing everything properly but I still get an errors message Icon when I try to set