OSX Darwin Scripting problems

Im sure this is a pretty easy question, but Ive had some problems writing a script for the Unix environment on my Mac. I eventually want to write a script so that when a user logs in via ssh they are directed to a directory other than their home and some aliases get set up etc. Unfortunately I cant even get a basic script to change directory to work. My file shows as follows:
!/bin/sh
cd ..
There is a directory for it to go to, but it wont go up one directory. I had also tried to get it to direct to the specific directory that I want it to. I dont know why this wont work and Im sure its something stupid, but I couldnt figure it out.
I did have a script work that I found in an online tutorial that looks like the following:
#!/bin/sh
osascript -e 'tell application "Finder"' -e "activate" -e "display dialog \"hello\"" -e 'end tell'
I dont know if there is something I am missing about that script that I dont have in my script (I tried adding "osascript" to mine but it didnt help). Again, Im sure its a stupid question but I have been having trouble with it. Thanks to anyone who helps with this.
PowerMac G5   Mac OS X (10.4.2)  

Im sorry for bringing up all these questions. Thanks for all your help with it.
With the old HP, when a user would connect via ssh, the shell would automatically run the user's .login file, which was modified to direct the user to a directory other than their own, set up some aliases to be used by the user for running some scripts, and would set paths for various things such as IDL etc. For example it would set "alias sim /codes/scripts/SIM" in a script and then the user would later be able to just type "sim" to run the script SIM.
In Darwin I havent been able to do that because, as you said before, the aliases are only around for as long as the script is running. I can modify the ~/.ssh/rc file to get the script to run on login just fine, I just cant get the effects to exist outside the scripts process space
Again, sorry to keep going on and on with this question, and Im sure Im explaining things you already understand perfectly well, I just want to be sure to explain what we are doing as best I can.
Thanks a bunch for your time and everything.

Similar Messages

  • Saved File Groups Issue in Bridge Center - script problem?

    Hi all,
    I tried posting this in the Bridge forum with no replies. After browsing through this forum I'm wondering if this is a script problem?
    I have the CS2 premium, and use all packages. The problem I have is saving and retrieving files in the 'Saved File Groups' of Bridge Center. I can save Photoshop files no problem, but the idea is to be able to save other files from open applications in the group and then to recall them later. I can save Illustrator files with others in a group but only Photoshop files open, and it ignores the saved Illustrator files.
    With my InDesign files, it does not even recognise them as files to be saved. I can have a file open, click on "Save open files into a file group" and it will come up with a little box saying there are no open files to save!
    OS - XP sp2. Bridge 1.0.2
    If this can be helped with scripting, please explain clearly, I am a graphic designer and no very little indeed about scripting.
    Your help would be appreciated.
    Thanks,
    Thysje Arthur

    Hi,
    Do you mean that Windows displays “Network Shortcuts” folder when you click “Browse” icon? If so, please check if you configure the default local file location to the “Network Shortcuts” folder. You could refer to the image below to find the option of the default
    local file location.
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • When I try to go to icloud I get 'script problem' and cannot enter. Could someone please advise me what to try. Thanks.

    When I try to go to ilcoud I get 'script problem' and can't enter. Please advise what I should try. Thanks.

    I use e-trade and a couple of times, years back, I found them behind the Java updates.
    So, now I install new Java platforms on my backup disk and test the streaming data on that first because I know it will be over-written that evening with my nightly backup.
    Of course, since I began doing that there hasn't been a problem. Do the same with printer driver updates.
    Anyway, call ScottTrade and howl! Tell them how many Macs are out there and why aren't they in Apple Developers Program?

  • OS X Lion - JAVA SCRIPT PROBLEM

    I recently updated from Snow Leopard to OS X Lion. Now I seem to have a JAVA Script problem. Where do I start fixing this issue. I have checked updates etc etc but it seems to be updated. However, when I login to my web site backend, I have a problem. Any advice please?

    Would you please write some more details? explain the problem and what web site backend you use. Thanks.

  • Firefox 31.0 - slowness and script problems for using websites

    Since Firefox 31.0 is released, some technical problems of slowness and script problems to use
    websites have been noticed from mine. Sometimes it needs up to some minutes to load a website
    and sometimes there are error messages for an unanswered script.
    pemigabo123

    Hello FredMcD,
    thank you for your message.
    But your answer to my question at support.mozilla.org is not helpful,
    although it is a professional technical answer from a Top 10 Contributor
    from mozilla.
    It seems that there is a permanent unfixed problem always if a new
    version of mozilla is released. After all fixed problems of the earlier
    version of firefox, there is no problem at all.
    But if I am already working with the non-problem earlier version of
    firefox, then suddenly the problems of error messages, slowness and
    script errors are appearing, and if I have looked for the actual version
    of firefox, there was signed a new version and now I have known,
    aha a new vesion of firefox was released and it needs up some time
    for every new version until the error problems were fixed.
    Maybe it is combined with the plugins like flashplayer or shockwave.
    But a professional version of firefox should not sign up error messages,
    because of plugins, while working with these plugins.
    Another answer from another support.mozilla.member was for an
    overload problem, because of opening some windows of firefox.
    But to open many windows of firefox was already no problem with the
    earlier version firefox 30.0 or earlier, until the error messages are fixed.
    The same unfixed problems are since firefox 25.0 up to 30.0, but I was
    wondering for how long version 30.0 was actual in practical working.
    And since version of firefox 31.0 was released the same problems
    of error messages, slowness and script errors were appearing.
    At the moment it seems firefox 31.0 works alright.
    But only the following time shows if it works without error messages,
    slowness and sript problems or not.
    In hope to give a helpful answer to yours
    kind regards
    pemigabo123

  • I keep getting adobe script problems. I have 3.6.13 version and have never had this problems with prior versions

    I can't find a solution to the adobe flashplayer that is associatied with Firefox. I keep getting script problems and am asked to either continue or ignore the problem. I've been a long-time user of Firefox and have never had any problems with Firefox or any associated programs (plug-ins) and so this is a surprise to me. I checked the version of the flashplayer and find that I have the most current version; so I'm not sure what's going on.

    Do a malware check with some malware scan programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • I write in greek as well as english on my mac (osx mountain lion) problem is, there is no spell checking on pages, and yes, i have added a greek dictionary in the library spelling folder. and i can also select it from the inspector. what's wrong?

    I write in greek as well as english on my mac (osx mountain lion) problem is, there is no spell checking on pages, and yes, i have added a greek dictionary in the library spelling folder. and i can also select it from the inspector. what's wrong?

    You need to give more details:
    1. What version of Pages?
    2. Where did you get the Greek dictionary from and exactly how did you install it?
    3. Are you applying the language to your text?
    Peter

  • Error on OS 10.4.6 update : peflight script problem

    Hi there folks. i posted in the G5 Display forum a problem i had with my computer hanging during startup (the grey screen with the apple logo) after a powersurge/cut last week. i was running 10.4.11 and i tried every diagnostic, but to no avail.
    i managed to boot up in Target Mode and save the data, and did a reinstall.
    i can reinstall 10.4.3 and then manually update to 10.4.4 and then 10.4.5 with no problem. but i keep getting this error message with any of the later updates:
    *failed: The following install step failed: run preflight script for Mac OS X Update Combined (PowerPC)*
    when i check the crashlog it says:
    *[477]: dyld: +Symbol not found: Perl_atforkunlock+*
    *preflight[477]: Referenced from: /usr/bin/perl*
    *preflight[477]: Expected in: /System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE/libperl.dylib*
    i can't figure out what has happened, but i've been reinstalling various versions of the OS now for days, and at one stage the computer kept booting into Darwin and all the Terminal command line gobbledygook kept popping up, which is utterly meaningless to me.
    i can't figure out what to do, other than splash out on Leopard (which i am loathe to do!) and see if that works, but there's no guarantee it will.
    anyone have this problem before or is tech-saavy enough to understand the meaning of the *+Symbol not found: Perl_atforkunlock+* message?
    many thanks in advance...

    Hi daddypaycheck. yeah, i completely wiped the drive a number of times (i guess i must have attempted about 12 installs!) and also did the whole repair permissions and various other diagnostic stuff, but to no avail.
    so i went out and bought Leopard and did a complete full-on clean install...
    with absolutely no luck. it bombed on me with 1 minute left to go, and every other attempt failed at the very start.
    so, i went back to 10.4.3 and chanced my arm again with the combo update to 10.4.11, and lo and behold, but the damned thing worked!
    EXCEPT for the fact that there are no folder icons on display in any view and barely any of my apple apps open (mail, ichat, safari and none of my iLife apps - except Garageband) etc, etc...
    also, the vertical scrollbar is missing from all windows, including iTunes, whenever that decides to open...
    i'm really, really annoyed with the whole thing now. i can't seem to find any info online. lots of similar, but-not-quite-the-same issues, regarding zapping PRAM, removing RAM, checking Graphiocs cards etc etc, but i have already tried all of these and there's no change.
    if it does work perfectly as 10.4.3, then surely it stands to reason there can't be any problem with displaying 10.4.11?
    and, in case anyone mentions to just stick with 10.4.3 if it works - my iTunes library seems to require 10.4.9 or later... sigh...
    thanks for the input though dpc!

  • Unix Darwin program problem stuck in!

    When I turn on my computer it runs in Unix mode and i cannot get out it back to Mac OSX. I have tried typing "reboot" but all it say is "operation not permitted". As far as I can tell the osx software is running fine because it shows it loading from startup but then goes directly to Unix Darwin. I must admit I have no knowledge of how to use this program and can't exit to regular mac. Any help to resolve this problem will be greatly apreciated. Thanks, Matt

    I was starting to have that same problem, among others. The culprit was that there was a capital letter contained in my "Short Name", but I swear I didn't put it there.
    Now, if you could open Disk Utility somehow (perhaps using the OSX boot disk?), you could open System Preferences/Accounts, and you'll either be able to see or create a new account for yourself. Inside the same window pane, on the right, you fill in a name, and the computer should automatically generate a Short Name under that. It is mandatory that the Short Name be all in lower case letters, and it can simply be your first name. Upper case letters used in the Short Name are not permitted in Unix, and your computer will think you're always trying to log into an alternate account that doesn't exist (or something like that). This can result in all kinds of maladies, including the one you're describing. Cog

  • OSX/OS9 Boot problems

    Tried this on the OS9 forum, but will try it here.
    I've happily run OS9 and OSX 10.2 for several years. I recently tried to boot into OS9 and all that popped up was a Smiley Mac folder alternating with a Question mark folder. I can't find my OS9 disk, but have my OSX disk. I'm able to put my OSX disk in and it goes through the install process. The preferences are grey out, so I can't set my start up disk like that.
    I've tried rebooting holding the option key and I get a screen with an two arrows. One pointing to the right and one that looks like a u-turn. If I hit the one that is a U-Turn the pointer starts to turn for a few seconds than stops. If I hit the straight arrow - it does nothing unless I have the OSX boot disk in - then it goes to the installation.
    I'm assuming that I'm in bad shape
    Next question is - If I have to reinstall OSX - can I save my files and programs. Of course I know the option to erase everything would do just that. My question is the one that allows me to save network connections saves my data and programs.

    Tony!
    I don't know if you're thanking me, for Posting HERE, or cornelius for echoing the info, but you're welcome!
    You need to create a system backup, or at least back up your critical data, ASAP!
    You can use Firewire Target Disk Mode.
    Insufficient available space, can cause performance issues, system corruption, and possible loss of data. As you have experienced.
    Depending on Mac system usage habits, it is a general recommendation, to keep 10% to as much as 20%, of the Total capacity, available at all times.
    Review the suggestions, in the documents that I have linked to below.
    Authored by Dr Smoke:
    Problems From Insufficient RAM And Free Hard Disk Space
    Freeing Space On Your Mac OS X Startup Disk
    Mac OS X 10.3/10.4: System Maintenance, authored by Gulliver
    Maintaining Mac OS X, authored by Dr Smoke
    Is the Mac shutdown overnight, or does it run 24/7?
    Have you ever run any routine Maintenance procedures?
    If you turn the Mac off nightly, the Background Maintenance Tasks, are never run.
    These can also be run, using a Third-Party utility, or manually using Terminal, to run the CRON Commands.
    I use MacJanitor, when necessary.
    INSTRUCTIONS TO RUN CRON MANUAL COMMANDS
    Quit all applications/programs.
    Navigate to HD > Applications > Utilities.
    Double click on Terminal, to open.
    At the prompt, type:
    sudo periodic daily
    Press Return.
    Enter your Admin password when prompted, then press Return.
    This will execute the daily script that is sheduled to run every night.
    When completed, repeat this procedure, but change the command to:
    sudo periodic weekly
    This one rebuilds a database or two, and usually takes somewhat longer to complete. It is scheduled to run once a week.
    Repeat again, with command:
    sudo periodic monthly
    Or they can all be run in one pass, which is preferable, with this command:
    sudo periodic daily weekly monthly
    When the tasks complete, and return to the prompt, you may quit Terminal.
    Restart the Mac, and run Repair Permissions.
    TO REPAIR PERMISSIONS ON THE STARTUP DISK
    1.Open Disk Utility, located in Applications/Utilities, and select the startup disk in the left column.
    2.Click First Aid.
    3.Click Verify Disk Permissions to test permissions or Repair Disk Permissions to test and repair permissions. (I never "Verify". Just run "Repair".)
    Rerun RP, until the only messages reported, are listed here Spurious Permissions Errors Using: 10.3.x, authored by Michael Conniff.
    When "Repair Permissions" is complete. Quit "Disk Utility".
    ali b

  • Adobe Dreamweaver CS5.5 - Windows 7 - Java Script Problem

    I am having trouble with Anchor.htm.
    When I try to insert an anchor in the text (Insert > Named Anchor> I get this error message:
    "While executing insertObject in Anchor.htm a Java Script error occurred."
    I recently downloaded both the 32- and 64-bit Java Script applications when I received a message that the existing version of Java Script was out-of-date. Anchor.htm worked before I installed the update.
    The files I downloaded and installed are:
    jre-7u9-windows-i586.exe
    jre-7u9-windows-x64.exe
    Please can anyone help me with this problem?

    From Dreamweaver FAQ
    http://forums.adobe.com/thread/429114
    "If Dreamweaver is acting erratically, or if you see a message saying "the following JavaScript error(s) occurred",  it's usually a sign of a corrupt cache file. The first thing to try should always be to delete the file cache. If that doesn't work, delete your personal Configuration folder. Full instructions are in Deleting a corrupted cache file.
    http://forums.adobe.com/thread/494811"
    Nancy O.

  • Do shell script problem in Applescript

    Hi,
    I am an Applescript novice and have been trying to write a code to go to a particular folder, look for all files in the folder tree with extension .m2v and run an executable file to decode them. My problem is that when I run my code (containing do shell script), it searches through all files and folders on Mac HD and starts decoding .m2v files elsewhere that I don't want.
    Eventually it runs out of space (.m2v file decoding takes a lot of space), because it is dumping all decoded .yuv files onto the HD.
    When I run the command on Terminal, it executes the decoding perfectly and stores the decoded files in the same folder.
    Please help me about what's going on.
    My code is something like:
    tell application "Finder"
    set DestinationFolder to "xxxxxx:xxxx:xxxx"
    set NumFolders to (get count of folders under Destination folder)
    repeat for SomeVar from 1 to NumFolders
    set FolderinQuestion to folder SomeVar of DestinationFolder
    -- Tried tell application "Terminal" here, but did not know --how to export the FolderinQuestion variable from Finder to --Terminal
    do shell script " \" cd \" & (POSIX path of (result as text));
    for file in `find $pwd \"*.mov\"`
    do
    /usr/local/bin/decode file
    done"
    end repeat
    end tell
    I would greatly appreciate some guidance.

    The root of the problem is that you're trying to quote the cd command for some reason:
    <pre class=command>do shell script " \" cd \" & (POSIX path of (result as text));
    ...</pre>
    In addition to that you're including the & (POSIX path of (result as text)) as part of the shell command whereas this should be OUTSIDE of the quotes in order to get evaluated
    If you work that through you'll end up with a shell command that looks like:
    <pre class=command>" cd " & (POSIX path of (result as text))</pre>
    If you try to run that in a terminal you'll get a cd : command not found error and that's why the rest of it appears to fail.
    The solution to that one is simple - just don't bother quoting the cd and put the POSIX path stuff outside of the quotes to get it evaluated at runtime:
    <pre class=command>do shell script "cd " & quoted form of POSIX path of (FolderInQuestion as text)) & ";
    # rest of shell commands here"</pre>
    Now, as for the rest of the script there are a few things I would change.
    First, unless you need to know the index, don't do:
    >repeat for SomeVar from 1 to NumFolders
    set FolderinQuestion to folder SomeVar of DestinationFolder
    the issue is that the number of folders to process may change during the script's execution (other processes may create or remove folders). This will, at best, cause some folders to be skipped and, at worst, cause the script to fail.
    If you're iterating through a list, the best option is to just:
    <pre class=command>repeat with FolderInQuestion in (folders of DestinationFolder)
    ...</pre>
    This automatically sets the iterator (in this case, FolderInQuestion, to the first item in the list and increments it for each iteration through the loop.
    Secondly, in your shell script itself, scrub the entire do/done loop. You're already using find, so have that do the hard work using the -exec switch:
    <pre class=command>find path -name "*.mov" -exec /usr/local/bin/decode {} \;</pre>
    In find's case, {} is substituted with the current file's path.
    Putting this together you'd get:
    <pre class=command>tell application "Finder"
    set DestinationFolder to "xxxxxx:xxxx:xxxx"
    repeat with folderInQuestion in (get folders of folder DestinationFolder)
    do shell script "cd " & quoted form of POSIX path of folderInQuestion & "; find . -name \"*.mov\" -exec /usr/bin/decode {} \\;"
    end repeat
    end tell</pre>
    Note that I've used 'quoted form of POSIX path' - this takes care of any shell-unsafe characters like spaces in the path name. I've also used \\; for the -exec switch - this is so that AppleScript passes the \ to the shell command rather than using it for its own escaping.
    But you're not done yet!
    There's still one fatal flaw in this process - and that is the fact that find by default, is recursive - it will walk through every directory that it finds.
    This means that if you start at the top folder and iterate through, find will find all .mov files and decode them. Your script then cd's to the first subdirectory and repeats the process - decoding all the .mov files in that directory and all its subdirectories even though they've ALREADY been decoded.
    The upshot is that you only need to run one loop starting at the top level. You don't need to iterate through all the subdirectories since find will do that for you.
    In addition to that, there might not be a need to use cd at all since the first argument to find is the directory to start searching in. Unless there's some reason that you need to start decode from the top level directory (e.g. is that where it saves the files?), you can drop the whole repeat loop altogether and just run with:
    <pre class=command>set startFolder to (choose folder)
    do shell script "find " & quoted form of posix path of startFolder & " -name \"*.mov\" -exec /usr/bin/decode {} \\;"</pre>
    That's the entire script - a radical compression of your original.

  • Sreaming at the top of my lungs for HELP with Java Script problem!

    Hello,
    I have this strange problem that no one seems to know why or how to fix it.Whenever I encounter a web site that has java scripting for anything pop ups or redirects to url's anything that says java script when I mouse over the link my browsers do nothing.That is for explorer 6.0 beta netscape 4.7 and netscape version 6.I have tried in another forum some suggestions but nothing changed even though I am told nothing is wrong with the java scripting.I used to be able to click java script's with all of these browsers but no longer.That was a few months ago.Now to try something new I tried to see if a new browser would work.I now have the latest version of Opera.It did work but using Opera on some sites limits what I can do so it doesn't solve my problem.Then I tried the Sun JavaHot browser it also worked but limits what I can do on some site's.I have Windows 98 & updated most of my dll's etc & my java is version 2 1.3.1.My java script is enabled in Explorer & netscape's & the security is at a minimum level.Please help me figure out why these other browsers work but the other's do not.I want to edit a web site of mine but I can't because of this problem.I am very frustrated by this and need as detailed help as I can get.Anything of a suggestion would be very much appreciated.But I am also not an expert on the working's of a computer so bear with me.
    Brian

    Hi,
    Well I am thinking that if anyone could know something about Java script it would be java developers.But anyways I had the previous version of explorer 5.0 & the java didn't work in it either.Now how weird is this,I opened netscape 4.7 today & the java scripts are suddenly working.This has me scratching my head wondering if my computer is possesed by some force beyond my capability to know...????Weird as it seems though the explorer still will not respond to a java script.
    Brian

  • VB Script Problems with Windows Vista Ultimate

    I have iTunes 7.0.2.16 and when i try to update it i keep getting a message that says:
    "iTunes could not be installed becasue visual basic script (VB Script) is not installed or has been disabled. make sure VB Script is installed, turn off script blocking in anti-virus and personal firewall software, re-register VB Script, then install iTunes."
    I even get this message when i try to unistall iTunes. I completly uninstalled my antivirus software and removed all firewalls, but i wasnt able to fix the problem.
    I visited the iTunes and QuickTime for Windows cannot be installed without Visual Base Script (VBScript) section for help, however, it was unable to solve my problem.
    I currently have Windows Vista Ultimate and have been looking for a fix for a while now...any help would be greatly appreciated...
    thanks
      Other OS   Windows Vista Ultimate
      Other OS   Windows Vista Ultimate
      Other OS   Windows Vista Ultimate

    Hey rrijeka,
    Unfortunately, Vista is currently not compatible with iTunes.
    This article: http://docs.info.apple.com/article.html?artnum=305042 will tell you more about the iTunes and windows Vista compatability. The article will also be updated when itunes and Vista are compatible.
    Jason

  • Re: OSX Lion printer problems with HP Laserjet 4200

    I have updated the driver for the HP LaserJet 4200 series printer to ver. 18.2. The computer communicates with the network, via a Linksys Wireless-G printserver, WPSM54G, and is sending something to the printer, but the printer prints only what appears to be identifying information, then raw code. Has anyone else had this problem? I use this OSX with three other printers, two of them wireless, with no problem.

    Just found an email HP Support sent to me back in January 2008, about this issue
    "Hello Hunter,
    Thank you for contacting HP Total Care.
    There currently is not proper driver for 10.5, so it is surprising that the printer is printing correctly on your Mac from any application.
    Your issue cannot be resolved until the 10.5 driver is developed and released.
    To sign up for an update as soon as it is available ...click on the link below:
    HP's subscriber's choice is a free service where you can select to receive timely email notifications ranging from software and driver updates to creative ways to do more with your HP products.
    http://h71036.www7.hp.com/hho/html/3618-0-0-225-121.html
    If you need further assistance, please reply to this message and we will be happy to assist you further.
    You may receive an e-mail survey regarding your e-mail support experience. We would appreciate your feedback.
    For information on keeping your HP and Compaq products up and running, please visit our Web site
    at:
    http://www.hp.com/go/totalcare
    Sincerely,
    Dave
    HP Total Care"
    I just sent them an email today on any updates regarding a release date on the Leopard driver for P1005, i'll post any info i receive.

Maybe you are looking for

  • Reclassify

    Hi, When i am running T.code FAGLF101 for vendors, systems is taking credit line items also.  But i want it to select only debit line items of vendor.  Can any one please tell me how to avoid credit line items of vendors while running FAGLF101. Thank

  • Crystal Reports Web Elements - database write back question

    Hi, I have a question about Web Elements. In description of them on SAP site it says they can provide "write-backs to the database". This is something I would really like to see. I have a scenario: User sees a long report and sometimes she needs to a

  • Messed with kexts, killed kb/tp on brand new mac!!! help

    ok, i was trying to disable mac's usb ports to see if that would let windows in Parallels get access to it (later learned this was impossible) so that I could read/write to an external ntsf hard drive. One method with SOME potential that I found on a

  • Messages won't let me open preferences

    My Messages wont even open after clicking it. I have to right click and press New Message.. Upon doing that the window opens up. When I start to type a name or number, nothing would show up. I went to open up the preferences and it was greyed out. Pl

  • Zigzag distortion in video

    I just purchased a video from ITMS and I am getting zig-zag distortion while playing it in iTunes. I can't tell if there is a problem with the video itself or with the playback, although I haven't experienced this before. It sort of comes and goes an