Applescripting Quark 4 in OS X

One would ask why are you doing that? Have no choice its what I have to work with. I had a script that would open a doc in Quark 4, place an image in the doc and auto print that worked in OS 9 Quark 4s native OS. I didn't need to change much to get it to work in OSX, however I cant get it to print.
It will run the print setup utility, but it will not print. Just stalls and then errors out.
Can anyone give me some assistance. I've placed that section of the script below if it will help.
set PrinterName to "MP780"
tell application "Printer Setup Utility"
set matchingPrinters to every printer whose name is PrinterName
set current printer to (item 1 of matchingPrinters)
quit
end tell
tell application "QuarkXPress 4 ™"
tell print setup of document 1
set print spreads to false
set orientation to portrait
set printer type to "Generic Imagewriter"
set separation to false
set registration marks to off
end tell
tell application "QuarkXPress 4 ™"
print
--close without saving
end tell
Any help is greatly apprecited
Ibook   Mac OS X (10.4)  
Ibook   Mac OS X (10.4)  

same problem for me (german installation). additionally i am not able to install the remote software update that is given via the standard software update bar. there is no info on details why this failed. i downloaded the newest itunes software via apple website and then tried it that way but also no success.
additionally i have problems with my LAN on my imac and the performance seems to be slower (i have an imac built in dec 2010)
hopefully there is somebody who can help... thanks in advance for any support!

Similar Messages

  • Converting old Quark applescript to InDesign - problems

    Hello
    I'm converting an old Quark applescript to InDesign CS3 finally. I'm having a problem with placing, scaling and adjusting images.
    Here's how it works ... a user fills out a Microsoft Word form, which a designer unlocks and pastes into the layout, and then runs the script. The image frames are all labeled, and that's how I'd like to call them.
    Here's a snippet of the Quark portion that I'm having a problem with ...
    set Todayicon to item (offset from list Dayicons of Todayval) of DayIconEPS
    set Todayiconpath to (OPIpath and Todayicon as string)
    set Todayicon to item 1 of Todayiconpath
    set scale of Todayicon to {"65","65"}
    set offset of Todayicon to {"-1p2","0p5"}
    And here's what I'm thinking I need to do in InDesign CS3 ...
    set Todayicon to item (offset from list Dayicons of Todayval) of DayIconEPS
    set Todayiconpath to (OPIpath and Todayicon as string)
    set Todayicon to item 1 of Todayiconpath
    set TodayiconTransformationMatrix to make transformation matrix with properties {horizontal scale factor:0.65, vertical scale factor:0.65, geometric bounds:[-14,-5]
    transform Todayicon in inner coordinates with matrix TodayiconTransformationMatrix
    Unfortunately, the script errors out when it tries to make the transformation matrix, even though I'm following the examples in the Working with Tranformations in Applescript pdf.
    Any ideas? I guess I can put dummy images in the layout and call a "Place" to override the dummy images, which should keep the scale, but it doesn't help me when I need to offset the images sometimes.

    Philip Regan wrote: "The new scripting model with all of its touted advantaged is really poorly executed."
    While I didn't design the scripting model for transformations, and disagree with some of the decisions made in the design, I understand that InDesign's transformations architecture had to be rewritten for CS3. There were too many cases in CS2 where objects could not be returned to their original coordinates after transformation. The scripting implementation pretty much had to go along with the change in the underlying architecture.
    If you'd rather things work the way they worked in CS2, why not use the set of transform "wrappers" that I wrote and included in the transform tutorial? With those functions, you don't really need to worry about the new model.
    Thanks,
    Ole

  • Looking for a howto for an applescript to batch convert PPTS to Keynote...

    Looking for a howto for an applescript to batch convert PPTS to Keynote...
    Hi to group!
    (cross posted this a couple of weeks ago to Keynote forum, no responses) Perhaps the query really belongs here...)
    (I) Have a whole bunch of PPTs to convert to Keynote, now and more as time goes on.
    Looked into applescript to try to automate this a bit (could open PPT file but did not see any way to 'Save' file from a script).
    Also looked into bash scripting/automator too -- way too many options to choose from. Help!
    Anybody done anything similar to this already?
    TIA for pointers. //GH

    A word of caution.
    I have not tried the workflow before.
    I am not an applescript expert.
    These steps were quickly composed using my basic knowledge in Applescript
    What I was planning was to create a script droplet that when a ppt file is dropped upon it, it extracts the name of the file and sets it to a variable to name the keynote file later. You might have to modify it a bit to batch process multiple files.
    Try going through batch processing scripts made for quark or Adobe photoshop ( Not sure if these exist on internet) to see how they have implemented the steps in applescript.
    To GUI Script Keynote, do these steps...
    All the code has to go in here
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">activate application "Keynote.app"
    tell application "System Events"
       tell process "Keynote"
          -- insert GUI Scripting statements here
       end tell
    end tell
    </pre>
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">click menu item "Export…"  of menu 1 of menu bar item "File"  of menu bar 1</pre>
    This will click the next.. button provided the default export type is set to PPT
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">click button 2 of sheet 1 of window 2
    </pre>
    This will click the Export button on the next window
    click button 1 of sheet 1 of window 2
    This piece of code can be used to set the name of the ppt file using the extracted name in the first step
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">set value of text field 1 of sheet 1 of window 2 to "<string>"
    </pre>
    May be there is a better way out there.
    Thanks for red_menace for his Script formatter script
    Message was edited by: dj9027

  • Applescript  Conversion from Quarkxpress to Indesign

    I am new to applescript and I am working on a project to convert an applescript for Quark Xpress 6.0 to Indesign CS4..
    Here is the part of the code I am having trouble with now.  It works fine if the application is set to quark but fails if set to indesign.
    tell document 1 of application "QuarkXPress"
    activate
    --loop once for each page in the document
    repeat with a from 1 to count of spreads
    --set view options so we can see what is happening
    show spread a
    set view scale to fit spread in window
    The error message says "A application constant or consideration can't go after this property. and the bolded part of the above code is highlighted.
    Thanks
    Marshall

    It fails because the script commands are quite different in InDesign. Choose Window->Library->Adobe InDesign CS4 to view a dictionary of commands that you can successfully give to InDesign. The command for zoom is quite different:
    tell application "Adobe InDesign CS4"
        zoom active window given fit spread
    end

  • Issues with Quark Xpress Hang/Freeze when focus is shifted to anything else

    I've been working on this issue since the 28th of Dec.
    I've been in contact with Quark. They're still examining crash log.
    I thought I'd share what is on my plate in hopes others might have had, and solved similar experience.
    This message will be verbose in hope of giving the uber-guru answers to questions in advance of their being asked.
    First portion will contain a log of actions taken and results there of.
    Second will be the typical Quark Crash log I've been getting when the application is quit.
    I will mention as well that I've received a clean bill of health from TechToolPro, DiskWarrior, etceteras, as well as Passed the tests from Apple Hardware Tests.
    Let me know if I can provide any additional info
    Log of Actions
    Installation of new Quark, up to 6.5 only.
    Completed at 5:27pm
    Launching Quark under New User at 5:28
    Launch successful.
    Created one file. Saved file, selected finder, then text editor, the quark.
    Quark still operating. added text, saved, and closed document.
    selected finder, then text editor, the quark.
    Quark still operating.
    Manually quit quark from application menu at 5:33.
    Application successfully "quit" without "crashing"
    Repeating the procedure above at 5:34
    Launched quark via double-click of previously saved file.
    added text, saved, selected finder, then text editor, the quark.
    Quark still operating.
    selected finder, then text editor, the quark.
    Quark still operating.
    quit quark from cmd-tab cmd-q method causes "unexpected crash"
    Ran several similar scenarios, with this as conclusion:
    Launching quark from double click of application, creation of new document, saving, and quitting in ANY fashion allows safe quit
    Launching Quark, opening from save/open dialog box an existing document, then quit with or without edit, using cmd-tab cmd-q allows safe quit
    Double-clicking existing document to launch Quark, then closing document after edit and save or immediately, quark Unexp. Crash occurs with Cmd-Tab Cmd-Q every time.
    Double-clicking existing documents to launch Quark, then closing document after edit and save, then create new document, with save and close, quark Unexp. Crash occurs with Cmd-Tab Cmd-Q every time.
    Launching of Quark 6.50 under base user
    Launching Quark, opening from save/open dialog box an existing document, then quit with or without edit, using cmd-tab cmd-q allows safe quit
    Double-clicking existing document to launch Quark, then closing document after edit and save or immediately, quark Unexp. Crash occurs with Cmd-Tab Cmd-Q every time.
    Double-clicking existing documents to launch Quark, then closing document after edit and save, then create new document, with save and close, quark Unexp. Crash occurs with Cmd-Tab Cmd-Q every time.
    Launching Quark, creating file, saving, selected finder, then text editor, the quark.
    Quark hangs/freezes until force-quit
    it seems there are two issues at hand.
    unexpected crashes occur with cmd-tab cmd-q in either Base or New user logins when quark launch was initiated by double-click of file from finder.
    and
    unexplained application hangs/freezes when under base user.
    Quark Crash Log
    Date/Time: 2008-01-03 19:08:44.597 -0500
    OS Version: 10.4.11 (Build 8S165)
    Report Version: 4
    Command: QuarkXPress
    Path: /Applications/QuarkTest/QuarkXPress 6.1/QuarkXPress/Contents/MacOS/QuarkXPress
    Parent: WindowServer [102]
    Version: QuarkXPress version 6.50 (6.50)
    PID: 4127
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNINVALIDADDRESS (0x0001) at 0x170f086c
    Thread 0 Crashed:
    0 <<00000000>> 0x170f086c 0 + 386861164
    1 com.quark.QuarkXPress 0x00554a18 _destroy_globalchain + 60
    2 com.quark.QuarkXPress 0x0053f910 exit + 52
    3 com.quark.QuarkXPress 0x00003f04 call_mod_initfuncs + 0
    4 com.quark.QuarkXPress 0x00003d80 _code_start_ + 48
    Thread 1:
    0 libSystem.B.dylib 0x9000b348 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000b29c mach_msg + 60
    2 com.unsanity.ape 0xc0001bf4 _apeagent + 296
    3 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 2:
    0 libSystem.B.dylib 0x90054388 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x90070be8 pthreadcond_timedwait_relativenp + 556
    2 ...ple.CoreServices.CarbonCore 0x90bf73f4 TSWaitOnSemaphoreCommon + 176
    3 ...ple.CoreServices.CarbonCore 0x90bff390 TimerThread + 60
    4 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 3:
    0 libSystem.B.dylib 0x900411f8 machwaituntil + 8
    1 libSystem.B.dylib 0x90040fc4 nanosleep + 388
    2 libSystem.B.dylib 0x90040df0 sleep + 144
    3 <<00000000>> 0x26124604 0 + 638731780
    4 <<00000000>> 0x2612d724 0 + 638768932
    5 <<00000000>> 0x2612d334 0 + 638767924
    6 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 4:
    0 libSystem.B.dylib 0x90054388 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x900541e4 pthreadcondtimedwait + 676
    2 <<00000000>> 0x26125f90 0 + 638738320
    3 <<00000000>> 0x26126134 0 + 638738740
    4 <<00000000>> 0x25caa6bc 0 + 634037948
    5 <<00000000>> 0x26251480 0 + 639964288
    6 <<00000000>> 0x2612d724 0 + 638768932
    7 <<00000000>> 0x2612d334 0 + 638767924
    8 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 5:
    0 libSystem.B.dylib 0x90054388 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x900541e4 pthreadcondtimedwait + 676
    2 <<00000000>> 0x26125f90 0 + 638738320
    3 <<00000000>> 0x26126134 0 + 638738740
    4 <<00000000>> 0x25caa6bc 0 + 634037948
    5 <<00000000>> 0x26251480 0 + 639964288
    6 <<00000000>> 0x2612d724 0 + 638768932
    7 <<00000000>> 0x2612d334 0 + 638767924
    8 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 6:
    0 libSystem.B.dylib 0x90054388 semaphoretimedwait_signaltrap + 8
    1 libSystem.B.dylib 0x900541e4 pthreadcondtimedwait + 676
    2 <<00000000>> 0x26125f90 0 + 638738320
    3 <<00000000>> 0x26126134 0 + 638738740
    4 <<00000000>> 0x25caa6bc 0 + 634037948
    5 <<00000000>> 0x26251480 0 + 639964288
    6 <<00000000>> 0x2612d724 0 + 638768932
    7 <<00000000>> 0x2612d334 0 + 638767924
    8 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 7:
    0 libSystem.B.dylib 0x900411f8 machwaituntil + 8
    1 libSystem.B.dylib 0x90040fc4 nanosleep + 388
    2 libSystem.B.dylib 0x90040df0 sleep + 144
    3 <<00000000>> 0x2625157c 0 + 639964540
    4 <<00000000>> 0x2612d724 0 + 638768932
    5 <<00000000>> 0x2612d334 0 + 638767924
    6 libSystem.B.dylib 0x9002bd08 pthreadbody + 96
    Thread 0 crashed with PPC Thread State 64:
    srr0: 0x00000000170f086c srr1: 0x100000004000f030 vrsave: 0x0000000000000000
    cr: 0x44800204 xer: 0x0000000000000000 lr: 0x00000000005549cc ctr: 0x00000000170f086c
    r0: 0x0000000000554a18 r1: 0x00000000bffffac0 r2: 0x00000000007e2d70 r3: 0x00000000170f086c
    r4: 0xffffffffffffffff r5: 0x00000000000003e8 r6: 0xffffffffffffffff r7: 0x0000000000000000
    r8: 0x0000000000000001 r9: 0x00000000a0001fac r10: 0x0000000002285a00 r11: 0x0000000024800202
    r12: 0x00000000170f086c r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
    r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000000000000
    r20: 0x0000000000000000 r21: 0x0000000000000000 r22: 0x0000000000000000 r23: 0x0000000000000000
    r24: 0x0000000000000000 r25: 0x0000000000000000 r26: 0x00000000bffffc44 r27: 0x000000000000000c
    r28: 0x0000000000000002 r29: 0x00000000bffffc54 r30: 0x000000000053f8f8 r31: 0x00000000007e49f0
    Binary Images Description:
    0x1000 - 0x71efff com.quark.QuarkXPress QuarkXPress version 6.50 (6.50) /Applications/QuarkTest/QuarkXPress 6.1/QuarkXPress/Contents/MacOS/QuarkXPress
    0xb05000 - 0xc45fff OmniCore.Mach-O.r.dylib /Applications/QuarkTest/QuarkXPress 6.1/OmniCore.Mach-O.r.dylib
    0xd1e000 - 0xe8ffff Xerces-c-cw8 /Library/Frameworks/Xerces-c-cw8.framework/Xerces-c-cw8
    0x1922c20 - 0x1922cd2 CFMPriv_CoreFoundation PEF binary: CFMPriv_CoreFoundation
    0x19232f0 - 0x1923367 CFMPriv_System PEF binary: CFMPriv_System
    0x1923610 - 0x19236e0 CFMPriv_CarbonSound PEF binary: CFMPriv_CarbonSound
    0x1923760 - 0x1923833 CFMPriv_CommonPanels PEF binary: CFMPriv_CommonPanels
    0x1923910 - 0x19239cb CFMPriv_Help PEF binary: CFMPriv_Help
    0x19239d0 - 0x1923a9a CFMPriv_HIToolbox PEF binary: CFMPriv_HIToolbox
    0x1923b20 - 0x1923bf6 CFMPriv_HTMLRendering PEF binary: CFMPriv_HTMLRendering
    0x1923c70 - 0x1923d43 CFMPriv_ImageCapture PEF binary: CFMPriv_ImageCapture
    0x1923dd0 - 0x1923eb5 CFMPriv_NavigationServices PEF binary: CFMPriv_NavigationServices
    0x1923f30 - 0x1924006 CFMPriv_OpenScriptingMacBLib PEF binary: CFMPriv_OpenScriptingMacBLib
    0x19240e0 - 0x192419e CFMPriv_Print PEF binary: CFMPriv_Print
    0x19241c0 - 0x192428d CFMPriv_SecurityHI PEF binary: CFMPriv_SecurityHI
    0x1924310 - 0x19243f2 CFMPriv_SpeechRecognition PEF binary: CFMPriv_SpeechRecognition
    0x1924470 - 0x1924543 CFMPriv_CarbonCore PEF binary: CFMPriv_CarbonCore
    0x19245c0 - 0x1924693 CFMPriv_OSServices PEF binary: CFMPriv_OSServices
    0x1924770 - 0x1924832 CFMPriv_AE PEF binary: CFMPriv_AE
    0x1924840 - 0x1924905 CFMPriv_ATS PEF binary: CFMPriv_ATS
    0x1924980 - 0x1924a57 CFMPriv_ColorSync PEF binary: CFMPriv_ColorSync
    0x1924ae0 - 0x1924bc3 CFMPriv_FindByContent PEF binary: CFMPriv_FindByContent
    0x1924c40 - 0x1924d1a CFMPriv_HIServices PEF binary: CFMPriv_HIServices
    0x1924d90 - 0x1924e70 CFMPriv_LangAnalysis PEF binary: CFMPriv_LangAnalysis
    0x1924f00 - 0x1924fe6 CFMPriv_LaunchServices PEF binary: CFMPriv_LaunchServices
    0x19250c0 - 0x1925197 CFMPriv_PrintCore PEF binary: CFMPriv_PrintCore
    0x19251a0 - 0x1925262 CFMPriv_QD PEF binary: CFMPriv_QD
    0x1925360 - 0x1925449 CFMPriv_SpeechSynthesis PEF binary: CFMPriv_SpeechSynthesis
    0x1ed3000 - 0x1eedfff com.apple.AppleIntermediateCodec 1.1 (141) /Library/QuickTime/AppleIntermediateCodec.component/Contents/MacOS/AppleInterme diateCodec
    0x1ef2000 - 0x1f08fff com.apple.IMXCodec 1.0 (114) /Library/QuickTime/IMXCodec.component/Contents/MacOS/IMXCodec
    0x1f93000 - 0x1f9efff com.apple.LiveType.component 2.0.2 /Library/QuickTime/LiveType.component/Contents/MacOS/LiveType
    0x1fac000 - 0x1febfff com.apple.QuickTimeFireWireDV.component 7.3.1 /System/Library/QuickTime/QuickTimeFireWireDV.component/Contents/MacOS/QuickTim eFireWireDV
    0x1fff000 - 0x1fff92b KodakCarbonShared PEF binary: KodakCarbonShared
    0x1623c000 - 0x162b5fff com.DivXInc.DivXDecoder 6.0.5 /Library/QuickTime/DivX 6 Decoder.component/Contents/MacOS/DivX 6 Decoder
    0x162c6000 - 0x163a2fff com.divxnetworks.DivXCodec 5.1.1 /Library/QuickTime/DivX 5.component/Contents/MacOS/DivX 5
    0x1642e000 - 0x1642efff com.apple.applescript.component 1.10.7 /System/Library/Components/AppleScript.component/Contents/MacOS/AppleScript
    0x16444000 - 0x1667dfff net.telestream.wmv.import 2.2.0.49 /Library/QuickTime/Flip4Mac WMV Import.component/Contents/MacOS/Flip4Mac WMV Import
    0x166b3000 - 0x16867fff net.telestream.wmv.advanced 2.2.0.49 /Library/QuickTime/Flip4Mac WMV Advanced.component/Contents/MacOS/Flip4Mac WMV Advanced
    0x168a9000 - 0x16922fff com.apple.DVCPROHDCodec 1.1.1 (209) /Library/QuickTime/DVCPROHDCodec.component/Contents/MacOS/DVCPROHDCodec
    0x16938000 - 0x169e8fff com.apple.AppleHDVCodec 1.0 (129) /Library/QuickTime/AppleHDVCodec.component/Contents/MacOS/AppleHDVCodec
    0x16a06000 - 0x16a7ffff com.apple.applepixletvideo 1.2.5 (1.2d5) /System/Library/QuickTime/ApplePixletVideo.component/Contents/MacOS/ApplePixlet Video
    0x18576000 - 0x185c53c7 CarbonLibpwpc PEF binary: CarbonLibpwpc
    0x185e7000 - 0x1864f97e KodakCMSC PEF binary: KodakCMSC
    0x25ac4000 - 0x25b1402f OLE.CARBON.Shared PEF binary: OLE.CARBON.Shared
    0x780ce000 - 0x78136fff com.apple.LiveType.framework 2.0.2 /System/Library/PrivateFrameworks/LiveType.framework/Versions/A/LiveType
    0x88d70000 - 0x88d75fff com.apple.CoreMediaAuthoringPrivate 1.1 /System/Library/PrivateFrameworks/CoreMediaAuthoringPrivate.framework/Versions/ A/CoreMediaAuthoringPrivate
    0x88fc0000 - 0x88fe7fff com.apple.CoreMediaPrivate 1.2 /System/Library/PrivateFrameworks/CoreMediaPrivate.framework/Versions/A/CoreMed iaPrivate
    0x89030000 - 0x890d0fff com.apple.QuickTimeImporters.component 7.3.1 /System/Library/QuickTime/QuickTimeImporters.component/Contents/MacOS/QuickTime Importers
    0x8fe00000 - 0x8fe52fff dyld 46.16 /usr/lib/dyld
    0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x9021b000 - 0x90268fff com.apple.CoreText 1.0.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90293000 - 0x90344fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90373000 - 0x9072efff com.apple.CoreGraphics 1.258.77 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x907bb000 - 0x90895fff com.apple.CoreFoundation 6.4.9 (368.31) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x908de000 - 0x908defff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x908e0000 - 0x909e2fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a3c000 - 0x90ac0fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90aea000 - 0x90b5afff com.apple.framework.IOKit 1.4.1 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90b70000 - 0x90b82fff libauto.dylib /usr/lib/libauto.dylib
    0x90b89000 - 0x90e60fff com.apple.CoreServices.CarbonCore 681.17 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90ec6000 - 0x90f46fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x90f90000 - 0x90fd2fff com.apple.CFNetwork 129.22 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x90fe7000 - 0x90ffffff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x9100f000 - 0x91090fff com.apple.SearchKit 1.0.7 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x910d6000 - 0x91100fff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x91111000 - 0x9111ffff libz.1.dylib /usr/lib/libz.1.dylib
    0x91122000 - 0x912ddfff com.apple.security 4.6 (29770) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x913dc000 - 0x913e5fff com.apple.DiskArbitration 2.1.2 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x913ec000 - 0x913f4fff libbsm.dylib /usr/lib/libbsm.dylib
    0x913f8000 - 0x91420fff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x91433000 - 0x9143efff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x91443000 - 0x914befff com.apple.audio.CoreAudio 3.0.5 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x914fb000 - 0x914fbfff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x914fd000 - 0x91535fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x91550000 - 0x91622fff com.apple.ColorSync 4.4.10 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x91675000 - 0x91706fff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x9174d000 - 0x91804fff com.apple.QD 3.10.25 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x91841000 - 0x9189ffff com.apple.HIServices 1.5.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x918ce000 - 0x918f2fff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x91906000 - 0x9192bfff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x9193e000 - 0x91980fff com.apple.LaunchServices 182 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x9199c000 - 0x919b0fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x919be000 - 0x91a04fff com.apple.ImageIO.framework 1.5.6 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x91a1b000 - 0x91ae2fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91b30000 - 0x91b46fff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91b4b000 - 0x91b69fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91b6f000 - 0x91c26fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91c75000 - 0x91c79fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91c7b000 - 0x91ce5fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91cea000 - 0x91d27fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91d2e000 - 0x91d48fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91d4d000 - 0x91d50fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91d52000 - 0x91e30fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x91e50000 - 0x91e50fff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91e52000 - 0x91f37fff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91f3f000 - 0x91f5efff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x91fca000 - 0x92038fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x92043000 - 0x920d8fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x920f2000 - 0x9267afff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x926ad000 - 0x929d8fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x92a08000 - 0x92af6fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92af9000 - 0x92b81fff com.apple.DesktopServices 1.3.7 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x92bc2000 - 0x92dedfff com.apple.Foundation 6.4.9 (567.36) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92f1a000 - 0x92f38fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92f43000 - 0x92f9dfff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92fbb000 - 0x92fbbfff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92fbd000 - 0x92fd1fff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92fe9000 - 0x92ff9fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x93005000 - 0x9301afff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x9302c000 - 0x930b3fff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x930c7000 - 0x930d2fff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x930dc000 - 0x93109fff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x93123000 - 0x93133fff com.apple.print.framework.Print 5.0 (190.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x9313f000 - 0x931a5fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x931d6000 - 0x93225fff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x93253000 - 0x93270fff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x93282000 - 0x9328ffff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x93298000 - 0x935a6fff com.apple.HIToolbox 1.4.10 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x936f6000 - 0x93702fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x9377b000 - 0x9377bfff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x9377d000 - 0x93db0fff com.apple.AppKit 6.4.9 (824.44) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x9413d000 - 0x941affff com.apple.CoreData 91 (92.1) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x941e8000 - 0x942adfff com.apple.audio.toolbox.AudioToolbox 1.4.7 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x94300000 - 0x94300fff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x94302000 - 0x944c2fff com.apple.QuartzCore 1.4.12 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x9450c000 - 0x94549fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x94551000 - 0x945a1fff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x945aa000 - 0x945c4fff com.apple.CoreVideo 1.4.2 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x945d5000 - 0x945f6fff libmx.A.dylib /usr/lib/libmx.A.dylib
    0x94799000 - 0x947a8fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x947b0000 - 0x947bcfff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x94802000 - 0x9481afff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x94821000 - 0x94b48fff com.apple.QuickTime 7.3.1 /System/Library/Frameworks/QuickTime.framework/QuickTime
    0x94c2e000 - 0x94c9ffff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x95075000 - 0x95092fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
    0x974b5000 - 0x974d4fff com.apple.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x97cda000 - 0x97ce7fff com.apple.agl 2.5.6 (AGL-2.5.6) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x97de2000 - 0x97e04fff com.apple.AppleVAFramework 2.4.32 /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
    0x98f34000 - 0x98fdefff com.apple.applescript 1.10.7 /System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
    0x9917c000 - 0x99d6afff com.apple.QuickTimeComponents.component 7.3.1 /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTim eComponents
    0x99fcd000 - 0x99fd1fff com.apple.QuickTimeH264.component 7.3.1 /System/Library/QuickTime/QuickTimeH264.component/Contents/MacOS/QuickTimeH264
    0x9a26d000 - 0x9a33bfff com.apple.QuickTimeMPEG4.component 7.3.1 /System/Library/QuickTime/QuickTimeMPEG4.component/Contents/MacOS/QuickTimeMPEG 4
    0x9ac70000 - 0x9ac8efff com.apple.OpenTransport 2.0 /System/Library/PrivateFrameworks/OpenTransport.framework/OpenTransport
    0xc0000000 - 0xc000ffff com.unsanity.ape 2.0.3 /Library/Frameworks/ApplicationEnhancer.framework/Versions/A/ApplicationEnhance r
    Model: PowerMac11,2, BootROM 5.2.7f1, 2 processors, PowerPC G5 (1.1), 2 GHz, 2.5 GB
    Graphics: NVIDIA GeForce 6600, GeForce 6600, PCI, 256 MB
    Memory Module: DIMM0/J6700, 256 MB, DDR2 SDRAM, PC2-4200U-444
    Memory Module: DIMM1/J6800, 256 MB, DDR2 SDRAM, PC2-4200U-444
    Memory Module: DIMM2/J6900, 1 GB, DDR2 SDRAM, PC2-4200U-444
    Memory Module: DIMM3/J7000, 1 GB, DDR2 SDRAM, PC2-4200U-444
    Network Service: Built-in Ethernet 1, Ethernet, en0
    PCI Card: GeForce 6600, Display, SLOT-1
    PCI Card: bcom5714, network, GIGE
    PCI Card: bcom5714, network, GIGE
    Serial ATA Device: WDC WD1600JS-41MVB1, 149.05 GB
    Parallel ATA Device: HL-DT-ST DVD-RW GWA-4165B
    USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA
    USB Device: CTE-440-U V4.0-3, WACOM, Up to 1.5 Mb/sec, 100 mA
    USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mA
    USB Device: Hub, Up to 12 Mb/sec, 500 mA
    USB Device: USB Printer, EPSON, Up to 12 Mb/sec, 500 mA
    USB Device: AK5370, AKM, Up to 12 Mb/sec, 500 mA
    FireWire Device: External HD, Iomega, Up to 800 Mb/sec
    FireWire Device: unknown_device, unknown_value, Up to 400 Mb/sec

    nodel9999 wrote:
      Should I buy an enclosure for my HD and see if I can get it going externally?  Would that be the best way to see if it is the drive and not the cable?  An enclosure is cheaper than buying a new SATA cable, so I'm hoping that's where I can start.
    Yes.  See if the HDD will boot the MBP via a USB connection.  You should probably have an external HDD for backups or a possible replacement of your boot drive.
    Ciao.

  • [AS] Beast of a script needs help converting from Quark 8 to InDesign CS5

    First off, THANK YOU for even reading this post. Here's the dilema. I work in a publishing company that used an AppleScript from Quark 8 to automate our pagination from set text we pull from our sales reps worksheets. About 8 months ago we switched fully to InDesign CS5, but have had to hold onto Quark 8 to be able to keep running our pagination. I'd like to see if the geniuses (yes, I've been trolling these forums looking to solve this myself and seen some great problems fixed) on these forums can help me figure out the proper conversion I would need to be able to leave Quark 8 in the rearview.
    Here's our current code... (I warned you it was a beast)
    set Ad_Props to {¬
         {Ad_Label:"SPREAD – ", Ad_Width:2.495, Ad_Height:1.62, Ad_Text_Angle:0}, ¬
         {Ad_Label:"FULL – ", Ad_Width:1.225, Ad_Height:1.62, Ad_Text_Angle:0}, ¬
         {Ad_Label:"SPREAD – ", Ad_Width:2.495, Ad_Height:1.62, Ad_Text_Angle:0}, ¬
         {Ad_Label:"JUNIOR – ", Ad_Width:0.90625, Ad_Height:1.62, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/2H – ", Ad_Width:1.225, Ad_Height:0.785, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/2V – ", Ad_Width:0.5875, Ad_Height:1.62, Ad_Text_Angle:90}, ¬
         {Ad_Label:"1/3V – ", Ad_Width:0.5875, Ad_Height:1.2025, Ad_Text_Angle:90}, ¬
         {Ad_Label:"1/4 – ", Ad_Width:0.5875, Ad_Height:0.785, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/4 Strip – ", Ad_Width:0.26875, Ad_Height:1.62, Ad_Text_Angle:90}, ¬
         {Ad_Label:"1/8H – ", Ad_Width:0.5875, Ad_Height:0.3675, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/8V – ", Ad_Width:0.26875, Ad_Height:0.785, Ad_Text_Angle:90}, ¬
         {Ad_Label:"Junior (GOLF) – ", Ad_Width:0.8, Ad_Height:1.62, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/3V (GOLF) – ", Ad_Width:0.375, Ad_Height:1.62, Ad_Text_Angle:90}, ¬
         {Ad_Label:"1/3sq. (GOLF) – ", Ad_Width:0.8, Ad_Height:0.785, Ad_Text_Angle:0}, ¬
         {Ad_Label:"1/6V (GOLF) – ", Ad_Width:0.375, Ad_Height:0.785, Ad_Text_Angle:90}, ¬
         {Ad_Label:"Directory Listing Only – ", Ad_Width:0.3, Ad_Height:0.3, Ad_Text_Angle:0}, ¬
         {Ad_Label:"INSERT (# in notes) – ", Ad_Width:0.3, Ad_Height:0.3, Ad_Text_Angle:0}, ¬
         {Ad_Label:"Other (See Notes) – ", Ad_Width:0.3, Ad_Height:0.3, Ad_Text_Angle:0}, ¬
         {Ad_Label:"------------ – ", Ad_Width:0.3, Ad_Height:0.3, Ad_Text_Angle:0}}
    set Position_Width to number
    set Position_Width to 11.375
    set Position_Height to number
    set Position_Height to 1.875
    set Jump_Height to number
    set Jump_Height to 0
    set Variable_Count to number
    set Variable_Count to 0
    set Variable_Height to number
    set Variable_Height to (1.875 + (1.62 * Variable_Count))
    set Last_Ad to number
    set Last_Ad to 0
    tell application "QuarkXPress"
         activate
         try
              display dialog "WARNING: This version of 'Dummy Square Maker' runs much slower than the last version, a confirmation will tell you when you are finished. Please be patient." & return & return & "Make sure to have the text box selected" buttons {"Cancel", "Accept"} default button 2 with icon caution
              set ThisBox to object reference of current box
              tell story 1 of ThisBox
                   set (every paragraph where it is return) to ""
                   set style sheet of every text to null
                   set style sheet of every text to "DUMMY TEXTS"
                   repeat with i from 1 to (count of paragraphs)
                        try
                             tell paragraph i
                                  set ThePage to my get_CurrentPage()
                                  try
                                       if it contains " – " then
                                            set style sheet to "AD SIZE"
                                            set Ad_Size to contents
                                            set {This_Width, This_Height, this_angle} to {"", "", ""}
                                            repeat with This_Ad in Ad_Props
                                                 if Ad_Size contains (Ad_Label of This_Ad) then
                                                      set This_Width to Ad_Width of This_Ad
                                                      set This_Height to Ad_Height of This_Ad
                                                      set this_angle to Ad_Text_Angle of This_Ad
                                                      exit repeat
                                                 end if
                                            end repeat
                                            set Ad_Box to my Make_Box(ThePage, {1.875, 10.875, This_Height + 1.875, This_Width + 10.875}, this_angle)
                                            duplicate contents to (end of Ad_Box)
                                       else if it contains "—" then
                                            set style sheet to "AD REP/PLACEMENT"
                                            duplicate contents to (end of Ad_Box)
                                       else if it starts with "©" then
                                            set style sheet to "AD REP/PLACEMENT"
                                            delete (character 1)
                                            duplicate contents to end of Ad_Box
                                            if Position_Width ≤ 19.75 then
                                                 set Jump_Height to Jump_Height + This_Height
                                                 (*_________________This is where Ad Boxes Stack_________________*)
                                                 if (Jump_Height ≤ 1.62) then
                                                      set origin of bounds of Ad_Box to {Position_Height, Position_Width}
                                                      set Position_Height to Position_Height + This_Height
                                                      (*_________________This is where Ad Boxes more right_________________*)
                                                 else
                                                      set Position_Height to Variable_Height
                                                      (*set Position_Width to Position_Width + This_Width + 0.05*)
                                                      set Position_Width to Position_Width + Last_Ad + 0.05
                                                      set origin of bounds of Ad_Box to {Position_Height, Position_Width}
                                                      set Jump_Height to This_Height
                                                      set Position_Height to Variable_Height + This_Height
                                                 end if
                                                 set Last_Ad to This_Width
                                                 (*_________________This is where New Row appears_________________*)
                                            else
                                                 set Position_Width to 11.375
                                                 set Variable_Count to Variable_Count + 1
                                                 set Variable_Height to (1.875 + (1.62 * Variable_Count))
                                                 set Position_Height to Variable_Height
                                                 set origin of bounds of Ad_Box to {Position_Height, Position_Width}
                                                 set Position_Height to Position_Height + This_Height
                                                 set Jump_Height to This_Height
                                                 set Last_Ad to This_Width
                                            end if
                                       else
                                            duplicate contents to (end of Ad_Box)
                                       end if
                                  end try
                             end tell
                        on error errmsg number errnum
                             display dialog "There has been an error " & "[" & i & "] (" & errmsg & " [" & errnum & "])" buttons {"Okay"} default button 1 with icon stop
                        end try
                   end repeat
                   delete contents
                   set style sheet of every text to null
              end tell
              beep 2
              display dialog "Automation Finished" & return & return & "IMPORTANT NOTE: Color your Ad Squares according to Sales Rep, and select them all and 'BRING TO FRONT [F5]', this is VITAL." buttons {"Okay"} default button 1 with icon stop
         on error errmsg number errnum
              beep 3
              if errnum ≠ -128 then
                   beep
                   display dialog errmsg & " [" & errnum & "]" buttons {"OK"} default button 1 with icon stop
              end if
         end try
    end tell
    on Make_Box(ThePage, TheBounds, this_angle)
         local ThePage, TheBounds, this_angle
         tell application "QuarkXPress"
              tell page ThePage of document 1
                   set Ad_Box to make new text box at end with properties {bounds:TheBounds, vertical justification:centered, color:"Rep_Other", shade:100, opacity:10, text angle:this_angle, frame:{style:solid line, color:"Black", shade:60, width:0.1}}
              end tell
         end tell
         (*end tell*)
         return Ad_Box
    end Make_Box
    on get_CurrentPage()
         tell application "QuarkXPress"
              tell document 1
                   return page number of current page
              end tell
         end tell
    end get_CurrentPage

    Hi,
    I think with this, you can already make good progress in your work.
    Good luck!
    global mydocument
    tell application "Adobe InDesign CS5.5"
         set mydocument to active document
         tell mydocument
              set myParaStyle to paragraph style "DUMMY TEXTS"
              tell page 1
                   set TheBounds to {0, 0, 20, 50}
                   set Ad_Box to make text frame
                   tell Ad_Box
                        set geometric bounds to TheBounds
                        set vertical justification of text frame preferences to center align
                        set contents to "This is the contents"
                   end tell
                   set myStory to parent story of Ad_Box
                   set applied paragraph style of every paragraph of myStory to myParaStyle
              end tell
         end tell
    end tell
    Your two handlers then look like this:
    on Make_Box(ThePage, TheBounds, this_angle)
         local ThePage, TheBounds, this_angle
         tell application "Adobe InDesign CS5.5"
              tell page ThePage of mydocument
                   set Ad_Box to make text frame
                   tell Ad_Box
                        set geometric bounds to TheBounds
                        set vertical justification of text frame preferences to center align
                   end tell
              end tell
         end tell
         return Ad_Box
    end Make_Box
    on get_CurrentPage(CurrentTextFrame)
         tell application "Adobe InDesign CS5.5"
              tell mydocument
                   return name of parent page of parent page of CurrentTextFrame
              end tell
         end tell
    end get_CurrentPage
    Shorter version:
    on get_CurrentPage(CurrentTextFrame)
         tell mydocument of application "Adobe InDesign CS5.5"
              return name of parent page of parent page of CurrentTextFrame
         end tell
    end get_CurrentPage
    Ce message a été modifié par: OlivierBerquin

  • Export PDF Workflow with Applescript and CS3

    Hello,
    I am setting up some PDF workflow with Applescript.
    On a given moment, as my script runs and after getting some user-input answers to questions in some dialogs, my script tells InDesign CS3 to open the Export Adobe PDF window for the current document. I copied and pasted that small part of the script:
    tell application "Adobe InDesign CS3"
    tell document 1
    export format PDF type to "Macintosh_HD:Test01.pdf" using "somePreset" with showing options
    end tell
    end tell
    When you run this small part of my Applescript, InDesign opens the Export Adobe PDF window (as expected) waiting for me to click on "Export". That is exactly what I want, since the user is given here a last opportunity to change some values (for example page range, or spreads). When all is set, the user can click on Export to close the dialog and finish the script.
    Problem: I was hoping that the Adobe PDF Preset "somePreset" would be selected in the first pull-down menu of the Export Adobe PDF window when this window is opened by the script. Unfortunately the last used preset is always selected by default. Anyone suggestions or help?
    Kind regards,
    Bertus Bolknak.

    My operators enter the page range and filename into a dialog box. Then I set those in the script. I use the Press Quality preset to start with and then set the changes I want into a export variable. I set things like bleed, marks, page range, etc.
    Here is an example:
    set theProps to properties of PDF export preset "[Press Quality]"
    try
    delete PDF export preset "Schmidt PDF"
    end try
    set theStyle to {name:"Schmidt PDF", acrobat compatibility:acrobat 7, bleed top:"0.125i", bleed bottom:"0.125i", bleed inside:"0.125i", bleed outside:"0.125i", page marks offset:"0.125i", include ICC profiles:Include None, effective PDF destination profile:use no profile, effective PDF X profile:"No Color Conversion"} & theProps
    make PDF export preset with properties theStyle
    set properties of PDF export preferences to theStyle
    set color bitmap sampling of PDF export preferences to none
    set grayscale bitmap sampling of PDF export preferences to none
    set page range of PDF export preferences to (item i of myPageList) as string
    export document 1 format PDF type to (PrinergyFolder & myJobNumFinal & "_" & VerCode & ".pdf") as Unicode text without showing options
    I am also doing this in Quark.

  • Batch processing in Quark 7 - how to avoid "missing font" interrruptions?

    I have a time scheduled applescript which opens a folder of quark files, does some processing using a quark extension, closes each file and moves it to a separate location.
    Problem is I get these "Filename uses fonts not installed in your system" dialog boxes with certain files which means I have to manually intervene and click the "Continue" button.
    Is there any way of specifying in Applescript - ignore the missing fonts and continue processing the files?
    Many thanks in advance!

    Managed to get the answer on the Quark Applescript forum. For anyone else who encounters the same problem the line
    use doc prefs yes remap fonts no do auto picture import no without reflow
    used with the open quark document command should get rid of dialogs like this.

  • [AS] Can Applescript record InDesign events ??

    Is is possible for the script editor to record apple events from Indesign? Ie. Press the record button in the script editor, do some stuff in Indesign and have the commands automatically recorded.
    If so, what is the criteria for this? CS1, CS2, CS3 ? MacOS 10.x ? Applescript version ?
    if not, is there a third-party plugin that will do this?
    (Many moons ago Quark (Agghhh) had an extension "ScriptMaster XT" which would allow the recording of events to the script editor)
    Currently wrestling with the limited topics that are covered in the Adobe AS guide. (Ie. lots of stuff on text, very little on images).
    Thanks in Advance.
    Matt.

    On 9/5/08 11:57 PM, "Matt McGregor" <[email protected]> wrote:<br /><br />> Is is possible for the script editor to record apple events from Indesign? Ie.<br />> Press the record button in the script editor, do some stuff in Indesign and<br />> have the commands automatically recorded.<br /><br />No. Very few apps are recordable these days.<br /><br />> (Many moons ago Quark (Agghhh) had an extension "ScriptMaster XT" which would<br />> allow the recording of events to the script editor)<br /><br />And what a dog's breakfast it used to produce...<br /><br />-- <br />Shane Stanley <[email protected]>

  • Get Hardware (Mac) Address through Applescript

    Hi All,
    How can I get Hardware (Mac) Address using applescript. Please tell me how can I do it. I have searched in the dictionary but I found nothing there.
    Why I need it, I have developed some tool for InDesign & Quark User. I want to add the mentioned module in my application, so that as user will run the tool it will first validate the Hardware address, and if it match then application will run otherwise it will show a piracy message.
    Thanks
    Rajeev

    >get if addr en0 failed, (os/kern) failure
    Then you don't have an active interface. You can't use ipconfig to query an interface that isn't up.
    You need to decide how you want to deal with this - you won't know in advance what interfaces the user may have active. For this reason, relying on the MAC address is inherently problematic. You might be better off using the system's serial number (which is less likely to change anyway):
    <pre class=command>set serialNum to do shell script "system_profiler SPHardwareDataType| awk -F: '/Serial/ {print $2}'"</pre>

  • How to produce an image Contact Sheet by way of AppleScript

    I have found that the PDF contact sheet action in Automator doesn’t allow for labeling the images (with file name and/or creation date etc).
    So, I thought I may try may hand at doing this by way of AppleScript.
    Does anyone know whether AppleScript (or any application supplied with Mac OS X) is capable of doing this?
    I can see how to get the images and scale them down, as well as find their names and/or creation dates, but I’m not really sure how to print them to a multi page pdf.
    20 iMac G5/17 PowerBook/G4 400 AGP/iPod   Mac OS X (10.4.3)  

    Hi,
    What is your Quark Xpress version and MAC OS.
    I am still working on it. Ihave almost completed but some bugs is there so it doesnot fulfill my requirements.
    See the code below:
    The problem line is in bold
    =========
    tell application "QuarkXPress™ 4.1_XU14777929963"
    activate
    set templateName to (choose file with prompt "Choose your template.")
    open templateName use doc prefs yes
    tell document 1
    set horizontal measure to points
    set vertical measure to points
    end tell
    set pageInfo to (properties of page 1 of spread 1 of document 1) as list
    set topMargin to top margin of pageInfo as list
    set pageLeftMargin to left margin of pageInfo as list
    set bottomMargin to bottom margin of pageInfo as list
    set rightMargin to right margin of pageInfo as list
    tell page 1 of document 1
    set pageBounds to bounds as list
    set rightMargin to get right margin as real
    set leftMargin to get left margin as real
    set topMargin to get top margin as real
    set bottomMargin to get bottom margin as real
    set pageWidth to get page width of document 1 as real
    set pageheight to get page height of document 1 as real
    set tot to leftMargin + rightMargin
    set totalPageWidth1 to pageWidth - rightMargin
    set totalPageHeight1 to pageheight - topMargin
    set maxWidth to totalPageWidth1 - tot
    set maxHeight to totalPageHeight1 - tot
    end tell
    tell page 1 of document 1
    make new picture box at beginning with properties {bounds:{0, 0, "1\"", "1\""}}
    tell picture box 1
    set colorbarImage to choose file with prompt "Find color bar."
    set image 1 to colorbarImage
    set colorbarBounds to bounds of image 1
    set colorbarWidth to (item 3 of colorbarBounds) - (item 1 of colorbarBounds)
    set colorbarHeight to (item 4 of colorbarBounds) - (item 2 of colorbarBounds)
    end tell
    delete picture box 1
    end tell
    set myFolder to choose folder with prompt "Choose your folder containing Images"
    set layOnly to false
    set myFolderText to myFolder as text
    ignoring case
    repeat with i from 4 to length of myFolderText
    if character i of myFolderText = ":" then
    if character (i - 1) of myFolderText = "s" then
    if character (i - 2) of myFolderText = "e" then
    if character (i - 3) of myFolderText = ":" then
    set layOnly to true
    display dialog ("Only .lay files will be processed")
    end if
    end if
    end if
    end if
    end repeat
    end ignoring
    display dialog ("How many points to add to box size?") default answer "0" buttons {"OK"} default button 1
    set addSize to text returned of result
    set addSizePts to addSize as real
    set theResults to (display dialog ("Enter Job Number") default answer "XXX" buttons {"No ID", "OK"} default button 2)
    set textJob to text returned of theResults
    set noID to button returned of theResults
    if (noID = "No ID") then
    set colorbarHeight to 0
    set singlleImage to "Yes"
    else
    display dialog ("Enter batch identification") default answer "Art" buttons {"OK"} default button 1
    set textBatch to text returned of result
    display dialog ("Enter Chapter identification") default answer "Art" buttons {"OK"} default button 1
    set textChapter to text returned of result
    set textJobBatch to "Job:" & textJob & " Chapter:" & textChapter & " Batch:" & textBatch & "" as styled text
    display dialog ("Enter date") default answer "EPG" buttons {"OK"} default button 1
    set textDate to text returned of result
    display dialog ("Enter Client Name") default answer "EPG" buttons {"OK"} default button 1
    set textClientName to text returned of result
    set textClientName to ("Client: " & textClientName)
    display dialog ("Enter your code") default answer "IHK" buttons {"OK"} default button 1
    set textOpName to text returned of result
    set textDateOpNum to (return & "Date:" & textDate & "Operator:" & textOpName) as styled text
    display dialog ("One image/page?") buttons {"YES", "NO"} default button 2
    set singleImage to button returned of result
    end if
    copy (list folder (myFolder) without invisibles) to fileList
    set currPage to 1
    set currSpread to 1
    set spreadInfo to (properties of spread currSpread of document 1) as list
    set newPage to true
    set imageOrigin to 0
    -- set leftMargin to leftMargin
    set columnWidth to 0
    set totalImages to 0
    if (noID = "No ID") then
    set textBoxHeight to 0
    set barCodes to true
    else
    set textBoxHeight to 58
    set barCodes to true
    end if
    repeat with i from 1 to count of fileList
    set imageFile to (myFolder as text) & (item i of fileList as text)
    tell application "Finder"
    try
    set fileType to file type of imageFile
    set creatorType to creator type of file imageFile
    on error
    set fileType to "RRRR"
    end try
    end tell
    if fileType ≠ "fold" then --checking whether it is a folder or file
    if ((fileType = "EPSF") or (fileType = "TIFF") or (fileType = "..CT") or (fileType = "JPEG") or (fileType = "GIFF")) then
    ignoring case
    if layOnly then
    if (imageFile ends with ".lay") then
    set processFile to true
    else
    set processFile to false
    end if
    else
    if (imageFile ends with ".C") or (imageFile ends with ".M") or (imageFile ends with ".Y") or (imageFile ends with ".K") then
    set processFile to false
    else
    set processFile to true
    end if
    end if
    end ignoring
    if processFile then
    set totalImages to (totalImages + 1)
    tell page currPage of spread currSpread of document 1
    if (imageOrigin + colorbarHeight + textBoxHeight) > maxHeight then
    make picture box at begining with properties {bounds:¬
    {topMargin + colorbarHeight + imageOrigin, leftMargin, ¬
    topMargin + colorbarHeight + imageOrigin + 36, leftMargin + 36}, color:"None"}
    end if
    tell picture box 1
    set image 1 to alias imageFile
    set imageBounds to bounds of image 1
    set imageWidth to (item 3 of imageBounds) - (item 1 of imageBounds) + addSize
    set imageHeight to (item 4 of imageBounds) - (item 2 of limageBounds) + addSize
    set saveImageHeight to imageHeight
    set saveImageWidth to imageWidth
    if imageWidth < colorbarWidth then
    set imageWidth to colorbarWidth
    end if
    end tell
    if newPage = false then
    ignoring case
    if singleImage = "Yes" then
    set leftMargin to (maxWidth + 1)
    set imageOrigin to (maxHeight + 1)
    end if
    end ignoring
    if (leftMargin + imageWidth) > maxWidth then
    set leftMargin to (maxWidth + 1)
    set imageOrigin to (maxHeight + 1)
    end if
    if (imagOrigin + colorbarHeight + imageHeight + textBoxHeight) > maxHeight then
    delete picture box 1
    set imageOrigin to 0
    set newPage to true
    set leftMargin to (leftMargin + columnWidth + 24)
    set columnWidth to 0
    if (leftMargin + imageWidth) > maxWidth then
    set currPage to currPage + 1
    if currPage > (item 6 of spreadInfo) then
    set currSpread to currSpread + 1
    set currPage to 1
    tell document 1
    make new spread at end
    show spread currSpread
    end tell
    set leftMargin to pageLeftMargin
    end if
    end if
    end if
    else
    set newPage to false
    end if
    end tell
    set fullSize to true
    tell page currPage of spread currSpread of document 1
    if newPage = true then
    set fullImageHeight to imageHeight
    set fullImageWidth to imageWidth
    if (imageHeight > (maxHeight - (colorbarHeight + textBoxHeight))) then
    set imagHeight to (maxHeight - (colorbarHeight + textBoxHeight))
    set fullSize to false
    end if
    if (imageWidth > maxWidth) then
    set imagWidth to maxWidth
    set fullSize to false
    end if
    make picture box at beginning with properties {bounds:¬
    {topMargin + colorbarHeight + imageOrigin, leftMargin, ¬
    topMargin + colorbarHeight + imageOrigin ¬
    + 36, leftMargin + 36}, color:"None"}
    tell picture box 1
    set image 1 to alias imagFile
    set imageBounds to bounds of image 1
    set colunWidth to imageWidth
    end tell
    set newPage to false
    end if
    tell picture box 1
    set height of bounds to imageHeight
    set width of bounds to imageWidth
    set bounds of image 1 to «constant JUSTcent»
    set boxBounds to bounds as list --box bounds reads as {A,B,C,D}
    set BoxA to ((item 1 of boxBounds) as point units) as real --converts everything to points
    set BoxB to ((item 2 of boxBounds) as point units) as real
    set BoxC to ((item 3 of boxBounds) as point units) as real
    set BoxD to ((item 4 of boxBounds) as point units) as real
    if (noID ≠ "No ID") then
    --set imageName to (name of image 1) as text
    get file path of image 1 --gets the path name of the imported image
    set pathName to result as text --converts the path name from a reference to text
    set oldDelims to text item delimiters of AppleScript --puts the current delimiters into a placeholder
    set text item delimiters of AppleScript to {":"} --uses the colon as the new delimiter
    set fileName to last text item of pathName --asks for the last item of the delimited text string and sets it to variable
    set text item delimiters of AppleScript to oldDelims --resets the old delimiters
    (* if the operator enters "none" for the bar code, don't ask for any more bar codes *)
    if barCodes then
    display dialog ("Enter bar code for image " & fileName) ¬
    default answer "none" buttons {"OK"} default button "OK"
    set textBarCode to text returned of result
    if (textBarCode = "none") or (textBarCode = "NONE") or (textBarCode = "None") then
    set textBarCode to ""
    set barCodes to false
    (* set textBoxHeight to 36 *)
    else
    if textBarCode ≠ "" then
    (* set textBarCode to (return & "Bar Code: " & textBarCode) as styled text *)
    set textBarCode to (" Bar Code: " & textBarCode)
    end if
    end if
    else
    set textBarCode to ""
    end if
    if (creatorType = "ART5") then
    set textCreator to " Creator: Illustrator"
    else if (creatorType = "8BIM") then
    set textCreator to " Creator: PhotoShop"
    else if (creatorType = "FH40") then
    set textCreator to " Creator: FreeHand"
    else
    set textCreator to " CreatorID: " & creatorType as text
    end if
    --set textClientBarCode to (return & textClientName & textBarCode) as styled text
    set textClientBarCode to (return & textClientName & textBarCode & textCreator) as styled text
    if fullSize then
    set sizeDisclaimer to ""
    else
    set sizeDisclaimer to " (complete image is not displayed; full size=" & (saveImageWidth as text) ¬
    & " x " & (saveImageHeight as text) & ")"
    end if
    end if
    end tell
    if (noID ≠ "No ID") then
    set textIDSize to (return & "Fig: " & fileName & " Size: " & (saveImageWidth as text) ¬
    & " X" & (saveImageHeight as text)) as styled text
    (* add a box identifying the figure including job, batch, client, barcode, name, size, date and oper *)
    make new text box at beginning with properties ¬
    {bounds:{BoxC + 6, BoxB, BoxC + 6 + textBoxHeight, BoxD}, runaround:none runaround, color:"None"} ¬
    if sizeDisclaimer ≠ "" then
    set story 1 of text box 1 to (fileName & sizeDisclaimer) as styled text
    else
    set story 1 of text box 1 to (textJobBatch & textClientBarCode & textIDSize & textDateOpNum) as styled text
    end if
    set justification of story 1 of text box 1 to «constant JUSTcent»
    if sizeDisclaimer = "" then
    tell paragraph 1 of story 1 of text box 1
    (* if (word count) = 2 then *)
    (* set style of word 1 to bold *)
    (* set style of word 2 to italic *)
    (* else *)
    set style of word 1 to «constant Stylbold»
    (* word 3 *)
    --select character 1
    (*set textArray to words as list
    set arrayLength to length of textArray
    repeat with i from 1 to arrayLength
    set paraLength to count of words
    repeat with i from 1 to paraLength
    if word i = "Batch" then
    set style of word i to «constant Stylbold»
    else if word i = "Chapter" then
    set style of word i to «constant Stylbold»
    end if
    end repeat
    (* end if *)
    end tell
    (* if textBarCode ≠ "" then *)
    tell paragraph 2 of story 1 of text box 1
    set style of word 1 to «constant Stylbold»
    set paraLength to count of words
    if textBarCode ≠ "" then
    (* set style of words 1 through 2 to bold *)
    (* word count *)
    repeat with i from 1 to paraLength
    if word i = "Bar" then
    set style of words i thru (i + 1) to ¬
    «constant Stylbold»
    end if
    end repeat
    end if
    repeat with i from 1 to paraLength
    if word i = "Creator" then
    set style of word i to «constant Stylbold»
    else if word i = "CreatorID" then
    set style of word i to «constant Stylbold»
    end if
    end repeat
    end tell
    (* end if *)
    tell paragraph 3 of story 1 of text box 1
    set style of word 1 to «constant Stylbold»
    (* word count *)
    set paraLength to count of words
    repeat with i from 1 to paraLength
    if word i = "Size" then
    set style of word i to «constant Stylbold»
    end if
    end repeat
    end tell
    tell paragraph 4 of story 1 of text box 1
    set style of word 1 to «constant Stylbold»
    set paraLength to count of words
    repeat with i from 1 to paraLength
    if word i = "Oper" then
    set style of word i to «constant Stylbold»
    end if
    end repeat
    (* word count *)
    end tell
    tell text box 1
    show
    set heightAdjustment to 6
    set item3 to (BoxC + 6 + textBoxHeight + heightAdjustment)
    --repeat while box overflows and (item3 < maxHeight)
    repeat while box overflows
    --if box overflows then
    set bounds to {BoxC + 6, BoxB, item3, BoxD}
    set heightAdjustment to heightAdjustment + 6
    set item3 to (BoxC + 6 + textBoxHeight + heightAdjustment)
    --end if
    end repeat
    end tell
    end if
    end if
    if (noID ≠ "No ID") then
    (* add the color bar *)
    make picture box at beginning with properties ¬
    {bounds:{BoxA - colorbarHeight - 1, BoxB, BoxA - 1, BoxB + colorbarWidth}, color:"None"}
    tell picture box 1
    set image 1 to colorbarImage
    end tell
    set imageOrigin to BoxC + textBoxHeight -- starting point of next image
    if imageWidth > columnWidth then
    set columnWidth to imageWidth
    end if
    end if
    end tell
    end if
    end if
    end if
    end repeat
    display dialog (totalImages as text) & " images processed in " & myFolder & ". " buttons {"OK"} default button {"OK"}
    tell document 1
    show page -1 --last page
    end tell
    end tell
    Thanks
    Rajeev

  • InDesign Applescript-single pages

    I have a script written that gives you single pages by range and adds the numerical digits at the end of the name. You can also name at time of using the script, I need it written in Javascript so I can use it on the PC. I also have a Quark one if anyone wants to tackle writing it in Javascript from Applescript as I do not know how.
    Thanks,
    Greg

    This script is not totally tested — I am in a big hurry and can't do this right now.
    I added a few new features:
    It checks — if 'Prinergy' preset is installed, If document contains non CMYK, modified, missing links.
    It removes section prefixes, like "Sec:1".
    Let me know if it works for you.
    Kasyan

  • Quark - Export layout as PDF

    Does anyone have a script which will open and export layout to PDF?
    I'm using a PDF workflow system called Odystar (http://www.artwork-systems.com/products/odystar/) which processes pdfs. I want to be able to select a group of Quark files and place into a folder watched by Odystar. This will run the applescript and allow the files to continue through the workflow.
    Please if anyone can help.
    Dave K.
    Xserve   Mac OS X (10.4.6)  

    I would suggest you post this question in the Quark User Forums (http://www.quark.com/service/forums/viewforum.php?f=14). This sort of thing has been posted before there and you should be able to get an answer.
    I know it is possible to script export as PostScript, which you could then distill using Acrobat Distiller.
    Robert

  • Open Quark using Java

    we are trying to open a quark file thru java in Mac OS 9.2
    the following are the commands we are using but this is throwing an exception
    "com.apple.mrj.macos.toolbox.MacOSError: (error: -43)"
    String[] commandLine = { "open", "123.qxd" };
    Process process = Runtime.getRuntime().exec(commandLine);
    The following Applescript is working fine in apple script editor but how can we incorporate this in java.
    tell application "finder"
    open file "123.qxd"
    end tell
    please let us know ASAP as this is an urgent assignment.

    AppleBhava...
    Sorry, what little I know may be a dangerous thing...
    If it is a valid Java command you may have to rename it to .jar. Other than that you may have to make an applet. Look over "About Apple Applet Runner" Readme.
    ...Ron

  • Shell commands in applescript noob

    Hi all this is my first post in these forums and I come seeking help with a certain script I'm writing for my current college job. The purpose of the script is to install creative cloud from a server and this is as far as I've got. First I can get as far as setting the correct directory in the server by doing:
    do script "cd /Volumes/applications/Mac/'Adobe Creative Cloud'/'Enterprise - enduser'/Build"
    now when I press run the terminal screen pops up just fine with no errors in the right directory. However I've been reading up that to do other commands in the same shell I must do do shell script. When doing this however terminal doesn't do...anything. The reason why I was trying this is because my next command would be initiating the install which is the command:
    "installer -verbose -pkg 'enterprise_Install.pkg' -target /" with adminitrator privilages
    Now my question is how would formulate this within applescript? Thanks.

    do shell script "cd /Volumes/applications/Mac/'Adobe Creative Cloud'/'Enterprise - enduser'/Build ;  installer -verbose -pkg 'enterprise_Install.pkg' -target / with administrator privilages"
    You got the double quote in the wrong place.
    do shell script "cd /Volumes/applications/Mac/'Adobe Creative Cloud'/'Enterprise - enduser'/Build ;  installer -verbose -pkg 'enterprise_Install.pkg' -target / " with administrator privilages
    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 unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

Maybe you are looking for

  • Configure Web Server in Solaris 10

    Hi I am using Solaris 10 I want to use it as web server How can I configure it what is the procedure to provide name of Web server and Total configuration through I can access on LAN or WAN Regards Satish

  • Help!  How do I get rid of LTCM Client?  Have an OSX 10.7.5 with Safari 6.1.5.

    Help!  How do I get rid of LTCM Client?  Have an OSX 10.7.5 with Safari 6.1.5. Everything went to **** in a hand basket when I went to get rid of MacKeeper = which I thought I did.  But no such luck - and I have no idea how I created this avalanche.

  • Netweaver 2004s on Solaris 10 (x64) - Starting SAP after server restart?

    I have a Netweaver System running on Solaris\Oracle. Is there a guide or any general information on how to make the SAP System and all necessary components automatically start up? Right now, after a reboot, I have to log in as my oracle user to start

  • Most recent date

    hi guys, I have a few tables which I want to query, basically one table with customer information lets call it customer and one table with appointment information, lets call it appointment(this table has an appointment_date field). Now, one customer

  • Trip has no postable amounts

    Dear All, I'm facing a problem while posting expenses in FI for expense type -Reimburse to employee. I get an error Trip has no postable amounts.My set up is working fine for 'Paid by company' expenses. Can you please suggest? Hemalee