Another 2048 error question

I have Windows XP Pro and the latest version of Quicktime.
Recently I recorded a video with my Pentax Optio W20 video camera which records in *.MOV format. The video plays on the camera with sound no problem. I copied the video from the SD Card to my harddisk and when I try to view the video with Quicktime I get:
"Error -2048: Couldn't open the file xxxxxx.mov because it is not a file that QuickTime understands."
I emailed the file to my buddy and the file plays without issue on his laptop (WinXP). So the file is a working file and is not corrupt or missing anything.
I've searched on this site and others and it seems this is a common issue when someone is trying to play a different file format with QuickTime, however this is a *.MOV flie! It should play without issue. What gives? HELP!
--Z

Here is my second plea for help.
I have since taken the files to a post production house and they also cannot open the larger ones. they say the pc has a 2 gig limit. Is this true? why is this not documented.
if no one can answer the above, perhaps someone can be so kind to tell me where I can get an answer if not on this forum. thanks!

Similar Messages

  • Why doesnt itunes let me restore my ipohne 4 it gives me a error question saying cannot restore.

    Why doesnt itunes let me restore my ipohne 4 it gives me a error question saying cannot restore.

    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
    http://support.apple.com/kb/TS3694#error1

  • QT won't stream videos.  I get the 2048 error.  How do i fix this?

    Okay, here is the deal.  For about 3 weeks i've read stuff online about this issue that has not helped me.  Let me break it down
    I've converted some video's to Mov files and i'm streaming them to some friends.  They are able to watch the video from the stream nin QT but i get the 2048 error.  I've tried everything that i can think of.
    I've read that i should change the file from mov to something else, but i was also told the file has to be mov format to stream. 
    I'm not interested in watching the file in VLC or anything else. In order for me to share the videos it has to be QT.
    I thought it could be my firewall but that doesn't seem to be the case. I've unistalled QT and reinstalled it as well
    I really need to get my QT to view these files.  I even called apple who blew me off. I have the latest version of windows and QT pro.
    I need some help..please feel free to explain the solution to me like I'm 5. I'm not great with this stuff.
    Thanks

    With that particular variety of 1606 (it's a 1606 error message even though the 1606 error message number isn't returned by the iTunes installer), cassi, the following Microsoft document is worth a try:
    You receive an "Error 1606" error message when you try to install or remove a Microsoft program

  • Another color management question

    Hi folks,
    Apologies for yet another color management question, but Im getting very confused and could do with some help. I use a Canon 10D and Canon 30D. Ive come to LightRoom from Pixmantec Raw Shooter.
    As Ive gotten more serious about producing high quality images for both the web and as prints, I thought Id invest in the Colorvision Spyder2 calibration product. So my monitor is now calibrated (quite a difference from what I was seeing!) and I have a calibration profile applied.
    My needs are pretty obvious I want my images to look the same wherever theyre viewed including exported files (such as JPEGs) whether this be on my monitor (in LightRoom, a web browser, Paint Shop Pro, whatever) and on a printer.
    Perhaps Im getting confused because Im trying to compare what LightRoom does with what RawShooter does.
    In RawShooter, when exporting from RAW to JPEG, I can specify the RGB Working Space Im using and then select my monitor profile. I think that what happens is that the export mechanism takes this profile into account and, low and behold, the JPEG looks fine when viewed in any web browser - the colours are exactly the same as in RawShooter. In Paint Shop Pro they look fine too unless I enable Color Management in which case (Im guessing) the monitor profile is, essentially, applied twice! But the upshot is I seem to get the results I want.
    What I cant figure out is how I do this in LightRoom. I can make the same adjustments to the RAW image as I did in RawShooter, but there doesnt seem an option for me to select my profile on export to JPEG only the standard 3 color spaces. Anyway the result is a JPEG that looks somewhat different when viewed in a web browser, or Paint Shop Pro with Color Management turned off. However, if I turn Color Management on in Paint Shop Pro, then it looks fine. So Im assuming that my profile isnt accounted for when exporting JPEGs from LightRoom.
    So any pointers or explanations would be really appreciated. I also acknowledge that this is my first foray into color management, and feel free to tell me to go and read some introductory article (link please!) and then come back with a sensible question if thats whats needed!
    Thanks in advance.
    - Pete

    Lightroom color management.
    a.) Monitor profile used: The profile set as the default in your operating system (e.g. Windows xp). (your monitor profile software usually does this when you calibrate/profile your monitor).
    b.) Working space: ProPhotoRGB
    c.) Export color space: You can choose one of the following sRGB; Adobe RGB or Pro Photo RGB.
    There is no option (afaik) to change a.) or b.) the option you choose in c.) will affect how the exported image will be displayed in color managed applications or non-color managed applications.
    Non-color managed applications are not able to display Adobe RGB or Pro Photo RGB correctly. I guess if you wish a consistent display of your images in color managed and non-color managed applications then the only common factor is sRGB and you should export your images in sRGB color space.
    The benefits of the other expanded color spaces are in printing and you also would have to get this end of your color management correct. Printing profiles to match your printer and each paper being used etc.
    Until you can get this all sorted out you will get better results from sRGB, this is also applicable when using most commercial printing services.

  • .mov created with 7.1 on a mac gives a -2048 error in Quicktime  7.1on a PC

    Anyone know why a .mov file created on a mac gives a -2048 error in Quicktime on a PC? Both computers have the latest version of Quicktime and OS.
    Help?

    When I "get info" on a Mac the format is DV/DVCPRO - NTSC, 720x480, Millions, DV, Stereo, 48Khz, 30fps. It's a 455MB file captured to a .mov using Sorenson Squeeze. I then copy it to a FAT32 hard drive and transfer it to a PC (WinXP). I've got Quicktime 7.1 installed on both machines. I thought it might be the FAT32 hard drive but it isn't because I burnt a data dvd from the Mac and then dragged the files onto the PC from the DVD. Same issue. -2048. I don't think I am creating problems in the transfer...
    I've read some of the post and I tried renaming the file .wmv and the video plays fine in windows media, but the audio is crackling.
    I can't import into any PC video program, Sorenson, Vegas they all give me unsupported file type errors.
    Thanks for your help.

  • Another Data Rate Too High Error Question

    Hi all,
    I have seen quite a few posts about pgc errors, but most of them deal with slideshows and not video; and I can't find anything with the REF=KApgc error.
    I'm just putting all of my home movies onto an authored DVD, not rocket science.  I'm using the 'Film Submenu' preset with only 5 main movies, things like Easter, Birthday, etc.  My transition for each button is a slate (for lack of a better word) that says exactly what it is and when it happened, before each movie plays.
    After I had everything set up, I realized I didn't have an ability to "play all" that would include these slates.  Simple solution, make a 'play all' button that links to a timeline that has everything in it - the slate, then the movie, next slate, next movie and so on.  (When I say movie - they are all .mov files rendered out from After Effects, even the slates)
    My transcode settings are NTSC DV High Quality 7mb VBR 2 Pass and the "maximum quality" box is checked.
    When I run the 'Check Disc' all is fine.  Preview the disc, all is fine.
    Build Disc: Hours of Transcoding then the error: Data Rate Too High at *timecode* REF=KApgc.
    When this movie is by itself with a button click, it's fine.  It's only in the "play all" timeline that it produces the error.
    If the data rate isn't too high in one place, why is it too high in another?  It's the same thing, just a longer timeline.
    Please Help!
    Thanks.

    Thanks Jeff,
    I feel kind of silly for not thinking of that as a solution to my play all dilemma.  That's why you're the expert I guess.
    A better solution would be to create a playlist of all of your other timelines; that way, only one copy of each gets burned to disc.
    Hopefully the "data rate" error will go away with these changes.
    -Jeff
    Can I place my slates that are just assets (.mov) in the playlist or can I only put timelines in there?
    Thanks again,
    -Jim

  • Another java newbie question:  "Link errors"

    In the environments I've attempted compiling in, it seems that there is a just-in-time default, which means that any missing classes are not found until run time.
    Is there any way to to run javac so that what we used to call "link errors" will be displayed at compile time?

    Java has no .h files, so it shouldn't compile at all if a class is missing, unless:
    Someone compiles class Library, they have class Extension available
    They give you Library
    You compile, javac sees theat "Library" exists and checks no further
    At run time, you get errors about Library needs missing class "Extension"
    What class is missing anyhow?

  • Another DRM Activator (error) question...

    Hello gang,
    I've got a user on a brand new machine this morning after the old one died abruptly.
    We were able to obtain her ONE Adobe D/E document and just a handful of others docs from her old machine (not accessible any longer). But she only had this one Adobe Digital Editions file....... and now she cannot open it.....
    We've installed Adobe D/E's latest (as of 2 hours ago) and are having one helluva time opening HER document citing the following error below....
    The Meat Buyers Guide.PDF
    Adobe DRM Error
    System: 7
    State: 4
    Class: 15
    Code: 57
    Message: Error on request or response from server.
    Please check your network connection and try again.
    Scroll below or view error.log for more details.
    Your Adobe software could not be activated.
    The Adobe DRM Activator is temporarily unavailable. Please try again later.
    --- end ---
    First it mentions not being available. But I can successfully launch http://adeactivate.adobe.com/  I grabbed from an Adobe KB, plus Library > Authorize Computer says she's OK (can't think of msg exactly, but it wasn't an error).
    Suggestions???
    BWB
     

    Unfortunately that file is no longer recoverable.  That error code indicates that the file was encrypted using an ACS3 server.  Until Dec 15th 2009, it was possible to migrate ACS3 protected content using Adobe Digital Editions (1.5 or above - basically the past year and half), however on Dec 15th the Activation server for the ACS3 server was taken offline.  (see http://www.adobe.com/products/contentserver/migrate.html for details )
    While this does not affect the ability to read content on a currently working machine, if that machine dies (as is the case for this user) you will no longer be able to read the content.
    If the user thinks that they did migrate the file (by opening it up in ADE post 1.5) then make sure you are getting the correct copy of the file from the 'My Digital Editions' (it'll differ from the original by having the information needed to open it up in ADE now, added at the bottom of the file ).

  • Another -8 error issue Please Help!

    I know this is becoming redundant, but I have been reading through alot of the existing threads regarding the issue and I have not been able to figure this out.
    The two machines in question are a Macbook Pro (mine) and my friends brand new Macbook. We are both running new versions of iChat Av. Initially there were no problems with video conferencing, we were both on the same network. I didnt start to get the -8 error until we tried video chat each of us on our own network. I have been receiving the 8 error almost every time a video chat is initiated, however, sometimes we are able to connect.
    From what I can tell from these posts, there are a number of things that might be causing this problem. I guess I need some clarification on specifically what these things may be. What is UPnP and how does it effect video chatting? Can I assume that the issue is with the other parties network since it worked perfectly over my network? Is there any specific configuration for the firewalls on our macs that need to be set up? Do I need to alter the settings on the PC that their router is connected to?
    Any help, suggestions, solutions, or just some direction would be GREATLY appreciated!

    Sounds like Ralph is the official answer man. Ralph, maybe you can help me with mine as well. I am having new issues that I didn't have a few months ago. I have been using my iMac to video chat with family on a PC running AIM. This was working successfully for me for a few months(after I did some port forwarding in my netgear router). Recently (within the last 3 weeks) it quit working altogether. An added issue is that I can no longer connect with another family member's MacBook (same error message -8) that was working previously. Any help?
    I am attaching my error log.
    Date/Time: 2006-08-01 22:30:19.109 -0400
    OS Version: 10.4.7 (Build 8J2135a)
    Report Version: 4
    iChat Connection Log:
    AVChat started with ID 0.
    0x448fb0: State change from AVChatNoState to AVChatStateWaiting.
    abercma: State change from AVChatNoState to AVChatStateInvited.
    0x448fb0: State change from AVChatStateWaiting to AVChatStateConnecting.
    abercma: State change from AVChatStateInvited to AVChatStateConnecting.
    0x448fb0: State change from AVChatStateConnecting to AVChatStateEnded.
    Chat ended with error -8
    abercma: State change from AVChatStateConnecting to AVChatStateEnded.
    Chat ended with error -8
    Video Conference Error Report:
    @:0 type=4 (00000000/22)
    [VCSIP_INVITEERROR]
    [19]
    @SIP/SIP.c:2437 type=4 (900A0015/22)
    [SIPConnectIPPort failed]
    @SIP/SIP.c:2437 type=4 (900A0015/22)
    [SIPConnectIPPort failed]
    Video Conference Support Report:
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:41961 SIP/2.0
    Via: SIP/2.0/UDP 192.168.0.2;branch=z9hG4bK17c24c843369ce89
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:41961>
    From: "abercma" <sip:[email protected]>;tag=775490942
    Call-ID: d2f56aaa-21ce-11db-a013-94c0bc5d13c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 470
    v=0
    o=abercma 0 0 IN IP4 192.168.0.2
    s=abercma
    c=IN IP4 192.168.0.2
    b=AS:2147483647
    t=0 0
    a=hwi:5168:2:1830
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:617288003
    m=video 16384 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:640:480:640:480
    a=rtpID:101464241
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:41961 SIP/2.0
    Via: SIP/2.0/UDP 192.168.0.2;branch=z9hG4bK17c24c843369ce89
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:41961>
    From: "abercma" <sip:[email protected]>;tag=775490942
    Call-ID: d2f56aaa-21ce-11db-a013-94c0bc5d13c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 470
    v=0
    o=abercma 0 0 IN IP4 192.168.0.2
    s=abercma
    c=IN IP4 192.168.0.2
    b=AS:2147483647
    t=0 0
    a=hwi:5168:2:1830
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:617288003
    m=video 16384 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:640:480:640:480
    a=rtpID:101464241
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:41961 SIP/2.0
    Via: SIP/2.0/UDP 192.168.0.2;branch=z9hG4bK17c24c843369ce89
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:41961>
    From: "abercma" <sip:[email protected]>;tag=775490942
    Call-ID: d2f56aaa-21ce-11db-a013-94c0bc5d13c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 470
    v=0
    o=abercma 0 0 IN IP4 192.168.0.2
    s=abercma
    c=IN IP4 192.168.0.2
    b=AS:2147483647
    t=0 0
    a=hwi:5168:2:1830
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:617288003
    m=video 16384 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:640:480:640:480
    a=rtpID:101464241
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:41961 SIP/2.0
    Via: SIP/2.0/UDP m.0:50129;branch=z9hG4bK09af63c713f122cf
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:41961>
    From: "abercma" <sip:[email protected]>;tag=340978314
    Call-ID: d1c43abc-21ce-11db-a013-b8f88cc613c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]:50129>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 474
    v=0
    o=abercma 0 0 IN IP4 m.0
    s=abercma
    c=IN IP4 m.0
    b=AS:2147483647
    t=0 0
    a=hwi:5168:2:1830
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 50132 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:617288003
    m=video 50130 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 50133 VIDEO 50131
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:640:480:640:480
    a=rtpID:101464241
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:41961 SIP/2.0
    Via: SIP/2.0/UDP m.0:50129;branch=z9hG4bK09af63c713f122cf
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:41961>
    From: "abercma" <sip:[email protected]>;tag=340978314
    Call-ID: d1c43abc-21ce-11db-a013-b8f88cc613c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]:50129>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 474
    v=0
    o=abercma 0 0 IN IP4 m.0
    s=abercma
    c=IN IP4 m.0
    b=AS:2147483647
    t=0 0
    a=hwi:5168:2:1830
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 50132 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:617288003
    m=video 50130 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 50133 VIDEO 50131
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:640:480:640:480
    a=rtpID:101464241
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:41961 SIP/2.0
    Via: SIP/2.0/UDP m.0:50129;branch=z9hG4bK09af63c713f122cf
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:41961>
    From: "abercma" <sip:[email protected]>;tag=340978314
    Call-ID: d1c43abc-21ce-11db-a013-b8f88cc613c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]:50129>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 474
    v=0
    o=abercma 0 0 IN IP4 m.0
    s=abercma
    c=IN IP4 m.0
    b=AS:2147483647
    t=0 0
    a=hwi:5168:2:1830
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 50132 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:617288003
    m=video 50130 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:15
    a=RTCP:AUDIO 50133 VIDEO 50131
    a=pogo
    a=fmtp:126 imagesize 0 rules 15:640:480:640:480
    a=rtpID:101464241
    @:0 type=2 (00000000/22)
    [VCVIDEO_OUTGOINGATTEMPT]
    [4]
    Video Conference User Report:
    Binary Images Description for "iChat":
    0x1000 - 0x17dfff com.apple.iChat 3.1.5 (436) /Applications/iChat.app/Contents/MacOS/iChat
    0x749000 - 0x795fff com.apple.speech.synthesis.MacinTalkSynthesizer 3.4 /System/Library/Speech/Synthesizers/MacinTalk.SpeechSynthesizer/Contents/MacOS/ MacinTalk
    0x17fd000 - 0x17fdfff com.apple.bluetooth.SCOCoreAudioDriverIDPlugIn 1.7.5 (1.7.5f10) /System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/IOBluetoothS COAudioDriver.kext/Contents/Resources/IOBluetoothSCOAudioDriverIDPlugIn.bundle/C ontents/MacOS/IOBluetoothSCOAudioDriverIDPlugIn
    0xeacb000 - 0xead0fff com.apple.audio.AppleHDAHALPlugIn 1.1.7 (1.1.7a2) /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bun dle/Contents/MacOS/AppleHDAHALPlugIn
    0xec70000 - 0xed53fff com.apple.audio.codecs.Components 1.4.6 /System/Library/Components/AudioCodecs.component/Contents/MacOS/AudioCodecs
    0xed78000 - 0xeda1fff com.apple.audio.SoundManager.Components 3.9.2 /System/Library/Components/SoundManagerComponents.component/Contents/MacOS/Soun dManagerComponents
    0xf12f000 - 0xf138fff com.apple.IOFWDVComponents 1.9.0 /System/Library/Components/IOFWDVComponents.component/Contents/MacOS/IOFWDVComp onents
    0xf141000 - 0xf170fff com.apple.QuickTimeIIDCDigitizer 7.1.2 /System/Library/QuickTime/QuickTimeIIDCDigitizer.component/Contents/MacOS/Quick TimeIIDCDigitizer
    0xf17a000 - 0xf1bbfff com.apple.QuickTimeUSBVDCDigitizer 1.4.5 /System/Library/QuickTime/QuickTimeUSBVDCDigitizer.component/Contents/MacOS/Qui ckTimeUSBVDCDigitizer
    0xf305000 - 0xf446fff com.apple.opengl 1.4.10 /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
    0xf46e000 - 0xf63afff com.apple.ATIRadeonX1000GLDriver 1.4.32 (4.3.2) /System/Library/Extensions/ATIRadeonX1000GLDriver.bundle/Contents/MacOS/ATIRade onX1000GLDriver
    0xf669000 - 0xf685fff com.apple.opengl 1.4.10 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLDriver.bundl e/GLDriver
    0xf68c000 - 0xf6adfff com.apple.opengl 1.4.10 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloa t.bundle/GLRendererFloat
    0xf70f000 - 0xf712fff com.apple.iokit.IOQTComponents 1.4 /System/Library/Components/IOQTComponents.component/Contents/MacOS/IOQTComponen ts
    0xf815000 - 0xf819fff com.apple.audio.AudioIPCPlugIn 1.0.0 (1.0) /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugI n.bundle/Contents/MacOS/AudioIPCPlugIn
    0x70000000 - 0x7010bfff com.apple.audio.units.Components 1.4.3 /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
    0x8fd50000 - 0x8fd8bfff com.apple.QuickTimeFireWireDV.component 7.1.2 /System/Library/QuickTime/QuickTimeFireWireDV.component/Contents/MacOS/QuickTim eFireWireDV
    0x8fe00000 - 0x8fe4bfff dyld /usr/lib/dyld
    0x90000000 - 0x9016efff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x901be000 - 0x901c0fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x901c2000 - 0x901fefff com.apple.CoreText 1.1.1 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90225000 - 0x902fafff com.apple.ApplicationServices.ATS 2.0.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x9031a000 - 0x9076afff com.apple.CoreGraphics 1.258.33 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x90801000 - 0x908c9fff com.apple.CoreFoundation 6.4.6 (368.27) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x90907000 - 0x90907fff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x90909000 - 0x909fcfff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a4c000 - 0x90acbfff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90af4000 - 0x90b57fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x90bc6000 - 0x90bcdfff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x90bd2000 - 0x90c42fff com.apple.framework.IOKit 1.4.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90c57000 - 0x90c69fff libauto.dylib /usr/lib/libauto.dylib
    0x90c6f000 - 0x90f14fff com.apple.CoreServices.CarbonCore 682.12 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90f57000 - 0x90fbffff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x90ff7000 - 0x91035fff com.apple.CFNetwork 129.16 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x91047000 - 0x91057fff com.apple.WebServices 1.1.3 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x91062000 - 0x910e0fff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x91115000 - 0x91133fff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x9113f000 - 0x9114dfff libz.1.dylib /usr/lib/libz.1.dylib
    0x91150000 - 0x91306fff com.apple.security 4.4.1 (27569) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x913f5000 - 0x913fdfff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x91404000 - 0x9142afff com.apple.SystemConfiguration 1.8.6 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x9143c000 - 0x91443fff libbsm.dylib /usr/lib/libbsm.dylib
    0x91447000 - 0x914c0fff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x9150e000 - 0x9150efff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x91510000 - 0x9153bfff com.apple.AE 314 (313) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x9154e000 - 0x91622fff com.apple.ColorSync 4.4.6 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x9165b000 - 0x916d8fff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x91705000 - 0x917affff com.apple.QD 3.10.20 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x917d5000 - 0x91820fff com.apple.HIServices 1.5.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x9183f000 - 0x91855fff com.apple.LangAnalysis 1.6.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x91861000 - 0x9187bfff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x91885000 - 0x918c2fff com.apple.LaunchServices 180 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x918d6000 - 0x918e1fff com.apple.speech.synthesis.framework 3.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x918e8000 - 0x91920fff com.apple.ImageIO.framework 1.4.7 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x91932000 - 0x919e4fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91a2a000 - 0x91a40fff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91a45000 - 0x91a61fff com.apple.ImageIO.framework 1.4.7 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91a66000 - 0x91ac4fff com.apple.ImageIO.framework 1.4.7 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91ad4000 - 0x91ad8fff com.apple.ImageIO.framework 1.4.7 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91ada000 - 0x91b35fff com.apple.ImageIO.framework 1.4.7 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91b39000 - 0x91b76fff com.apple.ImageIO.framework 1.4.7 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91b7c000 - 0x91b96fff com.apple.ImageIO.framework 1.4.7 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91b9b000 - 0x91b9dfff com.apple.ImageIO.framework 1.4.7 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91b9f000 - 0x91b9ffff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91ba1000 - 0x91c2bfff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91c32000 - 0x91c32fff 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
    0x91c34000 - 0x91c79fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x91c81000 - 0x91ca6fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x91cad000 - 0x92230fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x9226d000 - 0x9261ffff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x9264c000 - 0x926d0fff com.apple.DesktopServices 1.3.4 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x9270c000 - 0x9293efff com.apple.Foundation 6.4.6 (567.27) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92a4a000 - 0x92b28fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x92b45000 - 0x92c32fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92c42000 - 0x92c59fff com.apple.opengl 1.4.10 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92c64000 - 0x92cbbfff com.apple.opengl 1.4.10 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92ccf000 - 0x92ccffff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92cd1000 - 0x92ce1fff com.apple.ImageCapture 3.0.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92cef000 - 0x92cf7fff com.apple.speech.recognition.framework 3.5 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92cfd000 - 0x92d02fff com.apple.securityhi 2.0.1 (24742) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x92d08000 - 0x92d99fff com.apple.ink.framework 101.2.1 (71) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x92dad000 - 0x92db0fff com.apple.help 1.0.3 (32.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x92db3000 - 0x92dd0fff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x92de0000 - 0x92de6fff com.apple.print.framework.Print 5.1 (192.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x92dec000 - 0x92e4ffff com.apple.htmlrendering 66.1 (1.1.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x92e73000 - 0x92eb4fff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x92edb000 - 0x92ee8fff com.apple.audio.SoundManager 3.9.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x92eef000 - 0x92ef4fff com.apple.CommonPanels 1.2.3 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x92ef9000 - 0x931ebfff com.apple.HIToolbox 1.4.8 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x932f0000 - 0x932fbfff com.apple.opengl 1.4.10 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x93300000 - 0x9331bfff com.apple.DirectoryService.Framework 3.1 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x9336a000 - 0x9336afff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x9336c000 - 0x93a25fff com.apple.AppKit 6.4.7 (824.41) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x93da6000 - 0x93e20fff com.apple.CoreData 90 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x93e59000 - 0x93f1afff com.apple.audio.toolbox.AudioToolbox 1.4.3 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x93f5a000 - 0x93f5afff com.apple.audio.units.AudioUnit 1.4.2 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x93f5c000 - 0x9410afff com.apple.QuartzCore 1.4.8 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x94158000 - 0x94199fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x941a1000 - 0x941dbfff com.apple.opengl 1.4.10 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x94218000 - 0x9425ffff com.apple.bom 8.4 (86.2) /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
    0x94269000 - 0x9429efff com.apple.vmutils 4.0.1 (87) /System/Library/PrivateFrameworks/vmutils.framework/Versions/A/vmutils
    0x942e0000 - 0x942f0fff com.apple.securityfoundation 2.2.1 (28150) /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
    0x942fd000 - 0x9433afff com.apple.securityinterface 2.2.1 (27695) /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
    0x94356000 - 0x94365fff com.apple.CoreGraphics 1.258.33 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x9436c000 - 0x94377fff com.apple.CoreGraphics 1.258.33 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x943c3000 - 0x943ddfff com.apple.CoreGraphics 1.258.33 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x943e3000 - 0x9469afff com.apple.QuickTime 7.1.2 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x947fb000 - 0x94944fff com.apple.AddressBook.framework 4.0.4 (485.1) /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x949d0000 - 0x949dffff com.apple.DSObjCWrappers.Framework 1.1 /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x949e6000 - 0x94a0ffff com.apple.LDAPFramework 1.4.1 (69.0.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x94a15000 - 0x94a24fff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib
    0x94a28000 - 0x94a4cfff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
    0x94a58000 - 0x94a75fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
    0x94a7c000 - 0x94ae2fff com.apple.Bluetooth 1.7.5 (1.7.5f10) /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
    0x94d9f000 - 0x94e32fff com.apple.WebKit 418.8 /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x94e8c000 - 0x94f0efff com.apple.JavaScriptCore 418.3 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCor e.framework/Versions/A/JavaScriptCore
    0x94f41000 - 0x95220fff com.apple.WebCore 418.19 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
    0x9537e000 - 0x953a1fff libxslt.1.dylib /usr/lib/libxslt.1.dylib
    0x960f7000 - 0x96109fff com.apple.speech.SpeechDictionary 3.4 /System/Library/PrivateFrameworks/SpeechDictionary.framework/Versions/A/SpeechD ictionary
    0x96524000 - 0x96524fff com.apple.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x96a03000 - 0x96a24fff com.apple.speech.LatentSemanticMappingFramework 2.4 /System/Library/PrivateFrameworks/LatentSemanticMapping.framework/Versions/A/La tentSemanticMapping
    0x96a94000 - 0x96b4ffff com.apple.opengl 1.4.10 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
    0x96b69000 - 0x96b6afff com.apple.opengl 1.4.10 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLSystem.dy lib
    0x96b6c000 - 0x96b71fff com.apple.agl 2.5.9 (AGL-2.5.9) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x96ca5000 - 0x96ca6fff com.apple.MonitorPanelFramework 1.1.1 /System/Library/PrivateFrameworks/MonitorPanel.framework/Versions/A/MonitorPane l
    0x973f2000 - 0x974dafff com.apple.viceroy.framework 274.7 /System/Library/PrivateFrameworks/VideoConference.framework/Versions/A/VideoCon ference
    0x97c09000 - 0x97c0bfff com.apple.DisplayServicesFW 1.8.2 /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayS ervices
    0x97e35000 - 0x989e7fff com.apple.QuickTimeComponents.component 7.1.2 /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTim eComponents
    0x9934c000 - 0x99357fff com.apple.IMFramework 3.1.1 (427) /System/Library/Frameworks/InstantMessage.framework/Versions/A/InstantMessage
    0x99361000 - 0x994cefff com.apple.MessageFramework 2.1 (752.2) /System/Library/Frameworks/Message.framework/Versions/B/Message
    1.83 GHz Intel Core Duo iMac 1GB RAM   Mac OS X (10.4.7)  

  • Yet another Try Catch question. Iterating through a ForEach loop

    Confused on error handling in a Powershell ForEach loop. I’m looping through a list of registry keys, attempting
     to open each one. If it succeeds, I do a bunch of stuff. If it fails, I want to skip to the next iteration.
    If I was doing It in VBScript I’d do this:
    For Each Thing In colThings
    Open Thing
    If Err.Number <> 0 Then
    “oops”
    Else
    Do stuff
    Do stuff
    Do stuff
    End If
    Next
    This is what I came up with in PowerShell. It seems to work, but just doesn’t seem powershell-ish. There must be a better way to use the catch output than just creating a $return variable and assigning it success or fail?
    ForEach ($subKeyName in $subKeyNames)
    try{$subKey = $baseKey.OpenSubKey("$subKeyName")}
    catch{$return = "error" }
    If($return -eq "error" )
    “Oops”
    Else
    Do stuff
    Do stuff
    Do Stuff

     
    I totally get what you're saying about formatting. I don't' have any habits yet, since I've only been working in Powershell since... well, what time is it now?
    Unfortunately, It Has Been Decreed that we are no longer to use VBScript for any engineering solutions at work, so my 15 years experience in it now needs to be transitioned over asap. I don't have the luxury of crawling before I run. I'm trying not to be
    frustrated, but it's like an English major waking up one day and being told "You must now speak French exclusively. Here's a book."
    The Do Stuff example of my ForEach loop is about 50 lines of code involving matching values in subkeys of this registry key with another and collecting output. I tried wrapping the whole thing in a try section based on some examples, but it seemed odd, that's
    why I'm asking. I'm used to tightly focused error handling at the point where an error may occur.
    In this example I'm only interested in whether or not I can open the subkey (it exists, but I may not have permission). If I can't, there's no point in continuing with this iteration of the loop, I want to skip to the next one. So why include all the "Do
    Stuff" in the the try section? From a readability viewpoint, it doesn't seem helpful.
    Also, there may be more error handling deeper in the code. If I then put that in a try/catch, and then something else inside that, now I have nested try/catches mixed in with nested if/elses, all wrapped in a For loop.
    Again, I can see how it works logically, but for readability not so much, and having all these braces 50 lines apart to match up is giving me eye strain :).
    It sounds like David is agreeing with jrv, that putting the entire ForEach loop code into a try/catch is the conventional way to do it. I guess it makes as much sense as putting it all in an If-else-Endif, and I just need to adjust my paradigm.
    But if not, my specific question was more along the lines of, is there a built in way to tell that the catch section has been executed, rather than me using it to populate an arbitrary variable and then read it? In VBScript, you execute something, and the
    next line, you check the Err.number. I wasn't sure if you could do that with a try/catch.

  • Another script library question

    I had a quesiotn about this and "kel" gave me this suggestion:
    put these in [external script file]:
    property var1 : "VAR1"
    property var22 : "VAR22"
    property var333 : "VAR333"
    then in the actual script, do:
    set f to [external script file]
    set s_lib to load script f
    var22 of s_lib
    This works but there is a problem. I have now hundreds of lines of code with almost 30 variables, occurring dozens of times in the text and to manually find each and every one of them and paste "of s_lib" after them would be just awful.
    So my question is: is there a way to avoid it and simply "#include" the library somehow, like in C++?
      Mac OS X (10.4.8)  

    Hello Asu,
    I'm afraid you've missed an important point on global declaration.
    The point is that the variables imported by the previous 'SCRIPT 2' become global variables in the importer script just as though they were declared as global in importer's implicit run handler. And in order to refer to those global variables from a handler other than implicit or explicit run handler, you have to declare them as global in the handler unless you have declared them as global in the top level of importer script. In this respect, the global declaration in 'handler1()' in 'SCRIPT 2' is mandatory.
    Global variable declared in top level of a script and global variable declared in a handler in a script have different behaviours in regards to their scope. Please peruse the language manual for details:
    cf. pp. 311-323
    'Scope of Script Variables and Properties'
    AppleScriptLanguageGuide.pdf
    By the way, of course you may define a new variable and set it to an imported global variable, but then I think you should lose the only advantage of 'SCRIPT 2' over 'SCRIPT 1', that is no reassignments of variables are needed in 'SCRIPT 2'.
    As for handlers in external script, you'd need more complicated device. See the codes below. 'SCRIPT 1A' and 'SCRIPT 2A' are revised samples for 'SCRIPT 1' and 'SCRIPT 2' respectively. Although I'm posting them here, I don't recommend this sort of coding practice at all. It unnecessarily complicates matters and makes debugging harder. I'd recommend instead the simple and natural approach in AppleScript, that is; to load an external script and to tell it to do its tasks (as kel has explained), that should minimize non-essential dependencies and maxmize modularity (in AppleScript's own fashion).
    Hope this helps,
    H
    PS. 'run' command of AppleScript and 'run script' command in Standard Additions are utterly two things. The latter creates a new instance of script every time it is invoked and hence cannot share the context with caller script in normal means. And I see no reason to use 'run script' where I can use 'run'.
    -- SCRIPT 1A
    (* Import properties *)
    property p1 : {} -- required if it is used in external handler with 'my' possessive. -- [*A]
    property p2 : {} -- idem. -- [*A]
    property pf1 : {} -- mandatory. -- [*A]
    property pf11 : {} -- mandatory. -- [*A]
    main()
    on main()
    set o to load script file "RAM Disk:test:properties.scpt" -- load external script
    set {p1, p2, pf1, pf11} to o's {p1, p2, pf1, pf11}
    return {p1, p2, pf1(), pf11(), handler1()}
    end main
    on handler1()
    return {pf1(), pf11()}
    end handler1
      [A] Alternatively, these properties can be declared as globals as well.
       The point is that they must not be local.
       (Also if the following code were entirely in implicit or explicit run handler,
       no declaration of properties or globals should be required, for they become implicit globals)
    -- external script "properties.scpt" contains following code
    on f1() -- [*1]
    --return f11() -- [*2]
    return pf11() -- [*3]
    end f1
    on f11() -- [*1]
    return (my p1) + (my p2) -- [*4]
    end f11
    property p1 : 1
    property p2 : 2
    property pf1 : f1
    property pf11 : f11
      [1] Handler definitions must precede the definitions of the handler name's properties.
        e.g. f1()'s definition must precede the definition of 'property pf1 : f1'.
      [2] This should fail if f1() is called (via pf1()) in a script that loads this script; e.g.
        -- code of caller
        set o to load script file "path to this script"
        set pf1 to o's pf1
        return pf1() -- this should throw error -1708
        -- end of code of caller
      [3] Always invoke other handler by its 'global' (i.e. 'property') name. cf. [2]
      [4] Possessive 'my' is required to resolve property variable properly in a handler that is
       assigned to a property by itself.
        e.g. 'my p1' is required in 'f11()' when 'p1' is a property and 'f11()' is assigned to a property.
    -- end of "properties.scpt"
    -- END OF SCRIPT 1A
    -- SCRIPT 2A
    (* Import globals *)
    main()
    on main()
    set o to load script file "RAM Disk:test:globals.scpt" -- load external script
    tell o to run
    global g1, g2 -- mandatory -- [*A]
    --global gf1, gf11 -- [*B]
    return {{g1, g2, gf1(), gf11()}, handler1()}
    end main
    on handler1()
    global g1, g2 -- mandatory -- [*C]
    --global gf1, gf11 -- [*B]
    {g1, g2, gf1(), gf11()}
    end handler1
      [A] If the code currently in main() were in implicit or explicit run handler instead,
       no global declaration should be required, for the variables become implicit globals.
      [ B] Not required for 'global' handler name (that are redefined as global in 'globals.scpt').
      [C] Always required in a handler other than implicit or explicit run handler.
    -- external script "globals.scpt" contains following code
    global g1, g2 -- mandatory.
    main()
    on main()
    global gf1, gf11 -- mandatory -- [*1]
    set g1 to 1
    set g2 to 2
    set gf1 to my f1 -- [*2]
    set gf11 to my f11 -- [*2]
    end main
    on f1()
    --return f11() -- [*3]
    return gf11() -- [*4]
    end f1
    on f11()
    return g1 + g2
    end f11
      [1] If the code currently in main() were in implicit or explicit run handler instead,
       no global declaration should be required for handler names, for the variables become implicit globals.
      [2] Possessive 'my' is required to resolve handler name properly in another handler.
       If the code currently in main() were in top level of script (i.e. in implicit run handler) instead,
       'my' possessive should not be required.
      [3] This should fail if f1() is called (via gf1()) in a script that loads this script; e.g.
        -- code of caller
        tell (load script file "path to this script") to run
        return gf1() -- this should throw error -1708
        -- end of code of caller
      [4] Always invoke other handler by its 'global' name. cf. [3]
    -- end of "globals.scpt"
    -- END OF SCRIPT 2A
      Mac OS 9.1.x  

  • Another Simple Code Question... Please Help!

    Hi!
    I've stumbled across another problem with my coding, and I'm hoping that someone could help me out again. I've now got two classes, one with the code to draw a button, and the other which invokes the button and does a number of other things.
    I'd like it so each button is assigned to a different sound, but I get these errors when I compile...
    D:\java\Phone.java:8: cannot resolve symbol
    symbol : class AudioClip
    location: class Phone
    private AudioClip sound1;
    D:\java\Phone.java:64: cannot resolve symbol
    symbol : variable myButton1
    location: class Phone
    if (event.getSource() == myButton1)
    Could anyone suggest as to why this is?? Here is the source code (I've trimmed it down for the sake of these pages...)
    >>>>>>>
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    public class Phone extends Applet implements ActionListener {
    private Image image;
    private AudioClip sound1;
    public void init() {
    setLayout(null);
    image = getImage(getDocumentBase(), "phone.jpg");
    sound1 = getAudioClip(getDocumentBase(), "sound.wav");
    PhoneButton myButton1;
    myButton1 = new PhoneButton(322,180, 1);
    add(myButton1);
    myButton1.addActionListener(this);
    public void paint (Graphics g) {
    g.drawImage(image, 0, 0, 700, 530, this);
    super.paint(g);
    public void actionPerformed(ActionEvent event)
    if (event.getSource() == myButton1)
    sound1.play();
    >>>>>>>
    Again, I'm sorry about the indentation.
    Cheers in advance!

    To answer your post...instance variables mean you should put your variable declarations
    just below the class declaration like u have done with this...
    public class Phone extends Applet implements ActionListener {
    private Image image;
    private AudioClip sound1;Just add here...
    PhoneButton myButton1;
    this.
    That would make myButton1 an instance variable.
    sorry, i don't understand. And now, since you've put up dukes for answering your question...you have to reward them
    else they go waste. But only if you thought my reply was helpful to you. The choice is yours.
    cheers.

  • Another memory/cpu question/s

    I have searched the forums, and the links everyone has posted , and i cant find a answer to a few questions i have !
    #1: I have seen nothing on what brand ram would work using 2-1gb in dual channel ,on the k7n2-Delta , all the tests/talk has been using 512 or smaller ,any ideas??
    #2 : Can I run pc3200-400fsb memory (1gbx2) with a 333fsb Athlon-XP-3000+ , and will it lessen or gain performance by doing so??
    #3 : What is the highest CPU(socket A) that i can use on the k7n2-Delta(would a  3200+ etc work ?) or am i limited to the 3000+ ,as i seem to get that feeling from some posts i have read , or if it will work would i be better off getting a 3200+-400fsb along with pc-3200 1gbx2 (refer to #2)
    The reason im asking these questions is i want to add more ram (currently at 1gb and want to use 2gb ) but im not sure which brand would even work as i have seen nothing posted about using 2gb in dual channel and only a few manufacurers offer 1gb sticks ,let alone a matched set for dual channel, and i am unsure of the REAL limitations of this board and weather i would notice a difference by adding 400fsb ram while still using the 333fsb cpu , then if needed later swapping out my 333fsb cpu for a 400fsb cpu of the same speed or higher , or leaving it as is ,or if i can even do the upgrade i want to do to this board !......any help would be appreciated!!!!

    well i tried the board with a barton XP3200 and a Corsair value kit 2x512mb PC3200..
    didn't work well.. it froze half of the time.. when playing games... it the texture flickers..
    I went to the salesman and changed my RAM to Kingston PC3500 (i know it want work at fsb433!) but underclocking is always good.. still didn't work...
    it seems like its incompatibility... and the board seems to be really picky... MSI motherboards are really stabil... but to be picky? comeon... why didn't MSI made it compatible with the best ram out there...
    why is it only running most of the ram on PC2700?
    i suggest on finding another board if u like ur current ram and it doesn't make any errors in memtest... or check the list for compatible ram in one of the thread here..

  • Another external drive question

    As I mentioned in an earlier post, I've partitioned my WD 500 GB firewire 800 external drive into three partitions. My intention was to obtain a bootable backup in the first partition (100 GB) and have the other two as supplemental strorage for future use (200 GB and the remaining approx. 165 GB). After performing an immediate backup of the Macintosh HD into the first partition, I read that a "duplicate", not "backup" was required for boot purposes.
    I'd really appreciate some suggestions here from those with more experience in these matters. My internal 500 GB HD has approximately 28 GB of used capacity currently (this will grow, of course, over time). Should I have created a partition for a bootable start up and "duplicated" the internal HD? Then, should I use a second partition for normal backups? What size should these partitions be configured to allow for maximum future storage, without pushing the limits on the backup/startup partitions? And finally, what are the steps to re-configure the external to achieve my desired intentions?
    This is a lot of question, but I certainly appreciate the guidance provided me thus far in my early days of Mac enjoyment. Thanks.
    iMac 24 2.33/3G Ram/500G HD/7600GT/BT K/M /WD 500GB FWHD   Mac OS X (10.4.9)  

    Hello! Sounds like you have thought it out well. All you need now is to clone your main drive so it will be bootable. You can do that using CarbonCopyCloner, SuperDuper, or you can use the Apple Disk Utility you already have. A lot of people use SuperDuper and others swear by some of the others. Below are listed Kappy's steps to do it using the disk utility. I use several bootable backups just for peace of mind. I generally clone to one and then the other so if something happens during the cloning (such as a power outage) I'll still have a drive that works. I usually make a clone about once a month and then backup any important documents every day to a flash drive, cd/dvd, or another hard drive volume. Once you make a clone you should always boot from it to make sure it's booting ok. Sometimes a clone will fail to boot. I also HIGHLY recommend obtaining and using DISKWARRIOR. Diskwarrior is the "gold standard" for disk drive directory maintenance which is the leading cause of hard drive problems. Using DW about once a month or after any force shutdown, forced re-start, or power outage will head off most disk problems. Tom
    Kappy's Steps to Produce a bootable clone
    Prep external FW drive:
    1. Open Disk Utility from the Utilities folder.
    2. Select the backup or destination volume from the left side list.
    3. Click on the Erase tab in the DU main window. Set the format type to Mac OS Extended (journaled, if available) and click on the Erase button. This step can be skipped if the destination has already been freshly erased.
    4. Click on the Restore tab in the DU main window.
    5. Select the backup or destination volume from the left side list and drag it to the Destination entry field.
    6. Select the startup or source volume from the left side list and drag it to the Source entry field.
    7. Double-check you got it right, then click on the Restore button.
    8. Select the destination drive on the Desktop and press COMMAND-I to open the Get Info window. At the bottom in the Ownership and Permissions section be sure the box labeled "Ignore Permissions on this Volume" is unchecked. Verify the settings for Ownership and Permissions as follows: Owner=system with read/write; Group=admin with read/write; Other with read-only. If they are not correct then reset them.
    For added precaution you can boot into safe mode before doing the clone.

  • FRM-41211: Integration Error: SSL failure running another product Error

    Hai,
    I am developing POS Application in Oracle(Forms6i/Reports6i). I design the Invoice Print Format in Reports6i and call from the Invoice Form. When the
    user save the Invoice I Commit the Invoice and call the Invoice Report for Printing Immediately. I use Epson TM U210B Label Printer for Billing. Sometimes the Invoice Print is not coming in the Printer and it gives the
    following error(especially the First print after restart the computer).
    FRM-41211: Integration Error: SSL failure running
    another product
    After that if you print further for transaction no plm. only it gives the error first time of print
    So Please give the solutions immediately. I am waiting for Ur favourable Reply.
    Ur's Shahul

    As Petr said make sure you're reports25_tmp is set in your registry and that the directory exists AND you have the rights to write to that directory.
    You can also get this error if you try to issue a 2nd asynchronous run_product call to run a report and there is another one running. For this, Oracle has two 'solutions'.
    1) Do not run more then one asynchronous report per session
    or
    2) Use a delay loop before calling the next report.
    It's been my experience that #2 is worthless as, if it works, is doing pretty much the same thing as #1. I really hope this gets fixed (for good) at some point...somehow. <G>
    Chad

Maybe you are looking for

  • Windows 7 displays error message when exiting +cursor issue

    Two issues here. CS5 Phoshop on Wind 7 64 bit. Physical processor count: 8 Processor speed: 3073 MHz Built-in memory: 12279 MB Free memory: 9577 MB Memory available to Photoshop: 10934 MB Memory used by Photoshop: 80 % Image tile size: 128K First iss

  • Can't boot up in TDM mode

    My G4 will not boot up in Target Disk Mode. I've restarted it with the T key pressed three times and it just ignores it and boots up as normal. I'm running 10.3.9 on a G4 at 350 mhz. I'm puzzled.

  • Opening a new JFrame in a specific DISPLAY on X11 environment with JNI

    Hi, I have a problem that I'm unable to solve. I have a Java Application (on Linux with X11 XServer display manager ) running in background that has to open, once received the request, JFrames on the client display. So if I launch the client from "di

  • Managing roles for ACE RADIUS authentication

    Hi, I have an ACE module running virtual contexts. I have configured the ACE contexts to authenticate against a RADIUS server (Windows IAS). When I log in, I am always given the role of 'network-monitoring'. I would like to configure the RADIUS serve

  • Proximity sensor issue is more serious for me

    When I are talking with my customer this morning, how could you believe my ear dialed another call to one my friend, really incredible.... APPLE, WHEN WILL YOU FIX IT????