Getting the most from my iMac

Hi everyone,
I've had my iMac for almost 2 months now, just switched from windows, and of course on windows you can defrag the hard drive and check for errors and so on. My question is, do you have to do that on a Mac? I want my machine to run the absolute best that it can all the time and it seems that lately it's been slowing down a little. I've added a few apps and such but nothing big. So, if there is a way that I can make sure everything is clean and running at peak performance I would love to know how to do that, step by step. I'm very nervous about doing anything with the disk because I don't know what I'm doing. I'm very confident with windows but not Mac. If someone could help that would be awesome. Thanks, these forums are great!!
iMAC Intel Core Duo   Mac OS X (10.4.6)  

If you are making the transition from Windows to OS you just have to remember that everything is much easier on a mac. What you are looking for is Repair Disk Permissions in your Utility folder. I click this before and after I install ANYTHING, including updates. It keeps everything running smooth and takes about 4 seconds.
I had been away from Macs for years and I like Windows and Macs. When I bought the Imac I picked up a handbook on OSX Tiger. I figured if I just spent a couple thousand on a computer another $30.00 was a small price to pay. I can tell you that it has already prevented me from making mistakes.

Similar Messages

  • How to get the most from Nokia Support Discussions

    This forum is a community of users of Nokia products and services from around the world who share their experiences and help people to solve problems. I've been using this forum for a couple of years now, I originally joined because I work in telecomms and I was looking for answers to a few issues that I was experiencing, and like many of the regular members, I've been coming here ever since. There is a really good crowd here, and it is often fun to read the boards as well as informative.
    If you have a problem, if nobody else can help, and if you can find us (it's not hard, Discussions all over Google whenever you search for something Nokia-related), then maybe you can hire: The D Team!
    The communityThis is a peer-to-peer community, you are usually dealing with people who have an interest in mobile technology, albeit with a particular preference to Nokia, who can help on a wide range of questions - the advantage that we have as a community is that many users have experience of a range of devices and accessories, so you can often get help here about issues concerning Nokia products being used with products from other companies that even Nokia itself cannot offer. There has also recently been a presence of Nokia staff (their usernames are shown in green) who are also helping users on the forum in their own time.
    Unlike many forums that we all use regularly, this is an official forum owned and run by Nokia, not the creation of amateur enthusiasts like you and I, so they are much more strict about behaviour than other forums, and the moderators will remove anything that is offensive or disrespectful to other users, or which may cause offence to users of a sensitive nature. Basically, you should treat other users the way you could treat another member of the public in a public place - too many people take advantage of the anonymity offered by the internet to behave in a way that they would not normally do.
    This forum is not a source of official support from Nokia, for that you have to call or e-mail from the "Contact us" link. Most of us are just normal consumers like you, therefore we don't have information on when products, services, software updates etc. will be available so it's futile to ask. Nokia doesn't even publish this information in most cases, so even the Nokia employee members probably wouldn't be able to answer these sorts of questions even if they do have the information.
    Tips for getting your question answered:
     (1) Search firstSomebody else may already have posted the same question, so you can save yourself time by checking first if the answer you need is already published on the forum.
    (2) Choose the right boardPeople are online at different times, we may be taking a break from our work, relaxing at home after a meal, flicking back to the forum whilst doing other surfing on the 'net or anything else, and people will look in boards where they have a specific personal interest so, for example, if you have a problem playing a video on your N96 use the Imaging and videos board in the Ovi and Mobile Media section or if you have a problem installing themes or applications on your 6220 Classic, use the Phone Applications under Software. Posting these questions on the Nseries and S60 smartphones board might see them get lost amongst lots of technical questions about the phone itself, you have a better chance of getting an answer by choosing the right place to ask it.
    (3) Write a clear titleSpeaking for myself, I don't have time to read everything on the boards, so I look for topics that I might be able to answer; therefore don't just put the subject as a phone model number or the name of an application or users might just pass over your post without opening it to read. For example, a title like "Can't get GPS signal in 5800" is much more likely to catch the attention of an experienced GPS user or a 5800 user and get the question answered quicker.
    (4) Explain your problem clearlyPhones and the software that we use in them and with them grow ever more complex, just saying "I can't send an SMS" or "Mr camera isn't working" does not give any information with which an experienced user can help you to troubleshoot. Whatever the case, explain exactly what you are trying to achieve, what you tried, and describe what happened, for example: did an application shut itelf down? Did the phone freeze? Was there an error message, and if so what was it? All of this will help other users to identify what is going wrong for you and the less questions they have to ask you back, the quicker they might help you.
    Tips for making the right impression:
     (5) Use normal textWRITING ENTIRELY IN CAPITALS does not convey a sense of urgency, in internet communities it is perceived as shouting or other generally agressive behaviour, so it will not win the hearts and minds of the people whose help you need. Also, using large characters or bright colours may look nice to you, but too much text written in very large, bold or colourful letters can simply fill the screen unnecessarily and is not always any easier to read, so it can also put people off from helping you. Use these features when you need to highlight a particular point, not all of the time.  (6) Resize imagesIf you are embedding a picture in your post, resize it so that it fits into the frame of the normal page. A full screenshot of your PC or a megapixel+ picture will stretch the borders of the page so far that people have to scroll left and right repeatedly to read not only your post, but the entire page of the thread that it is on, and just as above, if you make it difficult for others to read the thread, they could miss some information or just pass over it altogether. If you want to share a large image, you can also add it as an attachment to the post so that people can view it when they choose without impacting on the display of the page for everybody.
    (7) Pleeeeaaaaazzzzeeee don't do thisFar from making most users take pity on you and try to help you, this kind of thing can be just as bad as all capitals, especially is you make a word so long that it affects the display of the page like inserting large images does. You are also better off not using SMS shorthand and local slang in your posts, because users of the boards are from all over the world and might be speaking English as a second, third, etc. language, so the person who knows the exact solution to your question might not understand the way you have asked it.
    Message Edited by mccbleue on 24-Sep-2009 03:48 PM

    You mention it is a DV/HDV Film - how did you edit it? Did you edit both formats on the same timeline in Final Cut? (What were the settings in Final Cut for the timeline?)
    If you are using HDV in a timeline due to the length of time to conform the output, you may be better off exporting the entire thing for testing (small enough for HDV, though I often use AIC or 422 nowadays).
    What settings are you using in Compressor? I know you mentioned many combinations, but did you use any frame controls? What was the rate? Did you use CBR/VBR?
    One thing to try to get things started. Use 8 CBR and in the frame controls set them to to "Better" for all of them. Will take a bit longer using the filters but should give you an idea where you are at. (Also take a look at the self contained movie to see if there are any artifacts/picels there).
    How are you watching the DVD - computer screen or burning to a DVD?

  • How to get the most from your MyBT account and rea...

    If you register for free online billing at www.bt.com/youraccount you'll benefit from having your BT account information at your fingertips online.
    Sign up to:
    View all your bills, stored online for 6 months
    Easily pay your bill or change your payment method
    Check your recent usage and call costs, updated daily
    Download and print your bills if you want to
    Manage the features of your services, such as Friends & Family add-ons
    All you need to register is an email address and your account number, which you’ll find at the top of your latest bill.
    If you have previously registered for an online account but have forgotten your username or password find out how to request a new password and get your username emailed to you.
    Why go Paper-Free?
    You might have heard about paper-free billing and be unsure whether to sign up. Here are a few reasons why paper-free billing would be a great option for you. Here's a few reasons why paper-free billing would be a great option for you.
    Get organised
    Signing up to paper-free billing with My BT can save you time, and it makes finding your latest bill much easier than searching through endless cabinets and drawers for that elusive bit of paper.  Copies of your bills are stored online for 6 months, so they're always there to view, download and print when you need them. One secure online log-in gets you instant access to your bill.
    Take control
    Signing up to paper-free billing can help you take control of your BT account, making it easy to keep track of your spending. You won't miss anything as we'll email to let you know your new bill is ready to view. You can even see which numbers have been called and how much each call has cost since your last bill.
    What else can you do on My BT?
    View Payments you’ve made
    Pay your bill or set-up a Direct Debit
    Manage your calling plans and calling features
    Track an order
    Track a fault
    To find out more and to sign up, visit www.bt.com/paperfree
    Finally, here’s a quick fact for you... Millions of BT customers have already signed up to paper-free billing, helping us save enough paper to stretch 7,500 miles from London to Tokyo each year!   Help us increase that amount of saved paper to reach all the way around the world.
    Stephanie
    Stephanie
    BTCare Community Manager
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post. If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

    You mention it is a DV/HDV Film - how did you edit it? Did you edit both formats on the same timeline in Final Cut? (What were the settings in Final Cut for the timeline?)
    If you are using HDV in a timeline due to the length of time to conform the output, you may be better off exporting the entire thing for testing (small enough for HDV, though I often use AIC or 422 nowadays).
    What settings are you using in Compressor? I know you mentioned many combinations, but did you use any frame controls? What was the rate? Did you use CBR/VBR?
    One thing to try to get things started. Use 8 CBR and in the frame controls set them to to "Better" for all of them. Will take a bit longer using the filters but should give you an idea where you are at. (Also take a look at the self contained movie to see if there are any artifacts/picels there).
    How are you watching the DVD - computer screen or burning to a DVD?

  • I am trying to show Utube video's on my church iMac through our projector and cannot figure out an easy way to get the video from my iMac screen to the projection screen?

    How do you easily show Utube video's up on a projection screen using an iMac?

    The first thing we need to know is exactly which model iMac you have and which model projector you have. This will help us point you to the correct video adapter/cable. Video output standards have changed dramatically over the years utilizing both analog and digital signals. Once we know which outputs and inputs each device has we can make a recommendation.
    Here's an article that shows the various Apple video ports.
    http://support.apple.com/kb/PH10567
    Your project will likely have one or all of the following VGA (analog), DVI (digital), or HDMI ports that can be used to connect your iMac.
    This article lists the various video cables and adapters available from Apple.
    http://support.apple.com/kb/HT3235

  • How To Get The Most From My Battery...

    Hello! I just received my new MacBook Pro yesterday after a long absence from Mac. Was a PC person due to my profession...but I am back now! Yeah!
    One of my biggest complaints with my Dell was that the battery crapped out very quickly. I would like to extend & take care of my Mac battery the best I can but I don't know what are the correct procedures for this.
    Should I keep it plugged as often as possible?
    Should I let it charge up all the way and then work on it until the battery dies and then plug in for another recharge and repeat?
    Or does none of this really matter?
    Any help would be appreciated!!
    Thanks,
    Cynthia

    Here's some advice from Apple:
    http://www.apple.com/batteries/notebooks.html
    http://support.apple.com/kb/HT1490

  • Getting the most out of SD

    I recently bought DSP on ebay. I use FCE to make films for various functions to be played on any standard DVD players. My intention was to be able squeeze a little more quality out of the film rather than having iDVD massacre it at the end of my work flow.
    I know the SD export is limited to 720x480, but Im not really sure this really much better than idvd. Does any one have any tips on how to get the most from SD?
    (For my work, using SD-DVD is absolutely necessary. Pls no suggestions about getting with the times, hooking up my laptop, or buying a ps3 )

    There are 3 things which go into a good encode:
    1. The quality of your source is the most important. Lighting, format, color correcton all affect your final output. DV for example is a great codec for home videos and such but would rarely be used in a profesional enviroment (or shouldn't) these days. Its highly compressed so when you compress it again to MPEG2 you notice artifacts.
    2. The Encoder itself. DVDSP isn't an encoder, its an authoring tool only. Yes it will encode your .mov file automatically but this uses the same encoding engine as iDVD so you will not get better quality with your DVDSP purchase unless you have Compressor or another third party encoder, such as BitVice. A good encoder can cost $70k.
    3. Knowledge is super important. Get online and read up on MPEG 2 technology. Understand bitrates, GOP structures, how audio formats effect bitrates ect. Encoding is just trial and error until you can look at some footage, know the length and immediately decide how you will tackle the job. Its an artform really.
    So to answer your question you will need to answer these 3 three questions for yourself based on the budget and how far you are willing to go with alll this. No way you should expect to buy a copy of DVDSP off eBay (which automatically makes it an outdated tool) and expect it to improve your end results.
    I love your question because I find it shocking how many talented producers, shooters and editors seem to treat DVD authoring and encoding as some kind of afterthought. In a way its the most important part of the process since everything can fall apart once a client takes a look at their poorly encoded footage they paid for
    Message was edited by: Eric Pautsch1
    Message was edited by: Eric Pautsch1

  • Getting the most out of my iMac G5 2.0 GHz

    Hi everyone!
    I have an iMac G5 (ALS) 2.0GHz, 1GB SDRAM, 160GB Hard drive which is running on OS 10.5.8.
    It's fully for my one use, and just as an extra; but I was just wondering if any of you had some advice for getting the most out of my PowerPC Mac. (Appart from increasing my RAM-memory, I know 1GB isn't much.)
    Thanks!
    Gijs

    Other than upgrading the hardware (you could also uprade to a larger faster hard drive or even SSD)...
    For YouTube (and other web sites that use Flash-based video), install ClickToPlugin Safari extension
    http://hoyois.github.com/safariextensions/clicktoplugin/
    In YouTube, with Safari and ClickToPlugin, HTML5-based version of the video (which is there mostly for mobile devices like iPhone and iPad) often gets played instead of the Flash-based version.  HTML5 video is more efficient, especially on PowerPC Macs.  On my Power Mac G5, playback is noticeable better with the HTML5 content (compared to Flash).  Also, ClickToPlugin prevents Flash-based ads on the same web page from loading, taking more load off the aging G5 processor.
    Create a new user account in System Preferences Accounts pane.  Log out and log in to the new user account (do not use Fast User Switching).  Do the things you normally to on your iMac using the new user account.  If things seem to run better in the new account, you should investigate what is happening in your normal user account.  You may have background processes (that start up automatically when you log in) which may or may not be necessary.  These may come from apps you have installed over time, which you may no longer use regularly.

  • I have a new iMac running iTunes 10.4 in OS 10.6.8, and a new Mac Air running iTunes 10.4 in Lion.  I was able to transfer all my music etc. from the iMac onto the Air, but cannot figure out how to get the Playlists from the iMac to the Air.  iTunes Help

    I have a new iMac running iTunes 10.4 in OS 10.6.8, and a new Mac Air running iTunes 10.4 in Lion.  I was able to transfer all my music etc. from the iMac onto the Air, but cannot figure out how to get the Playlists from the iMac to the Air.  iTunes Help says File >Library >Export playlist and choose XML, or to save a copy of all your playlists, File > Library > Export Library, "the Exported info is saved in XML format."  Then it says, "to import an iTunes playlist, File > Library > Import Playlist".  Now I am assuming I do that import part on the Air, but when I try it doesn't recognize anything that can be imported - what am I missing??? Aside from a clue...

    Thanks, Jim, for taking the time, but the reply is unfortunately vague in the exact area of my confusion!  "you need to copy that file to your new computer..."  Well, the Import/Export instructions make it seem as if the two computers should be able to communicate this file thru wifi, but that's the linkage I can't seem tocreate with Import/Export.  Should I instead email a copy to myself (thats what applecare suggested)?  Copy it to and from a thumb drive?  But then place the file where?  And the article was helpful, but should I be trying to move the Library file or the Library.xml file (as iTunes Help suggests)?  Sorry to be so clueless about it...I suppose I buy Apple in the hopes of not having to think about this stuff, which approach seems not to be serving me well. Thanks again for your time!

  • I got a new iphone 6.  When I restore my phone from my icloud backup my most recent photos and messages not restored from icloud backup.  How do I get the most recent backup onto my new phone?

    I got a new iphone 6.  When I restore my phone from my icloud backup my most recent photos and messages not restored from icloud backup.  How do I get the most recent backup onto my new phone?

    Hello, Anita.  
    Thank you for visiting Apple Support Communities.  
    I understand that you are wanting to restore your new iPhone 6 from an iPhone 5 backup.  This sounds like the iOS version of your old iPhone 5 may be newer than what was installed on your iPhone 6.  Try going through the steps in the article below.  
    iOS: Unable to restore from backup of a newer device
    I would also check to see the backup dates in iTunes and if the  backup is located on iCloud instead of iTunes.  
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes
    Cheers, 
    Jason H.  

  • Getting the most out of my T400 for light gaming

    So I just got a used T400 to play around with while I'm overseas. It is the model with the P9400 and ATI HD3470. It was an old corporate laptop that was refurbished and sold over ebay. So far it has been great. I know not to expect great performance when gaming but I'm wondering if anyone has any tips and tricks to really get the most out of it. 
    Do you think it would be worth it to open it up and blow it out? Also, the battery is a 9-cell but I'm only getting about 3 hours out of it. I know it is from sitting at a desk for years just plugged in all the time. Is there anything I can do to improve it? Or should I just get a new one?
    Thanks so much!

    Other than upgrading the hardware (you could also uprade to a larger faster hard drive or even SSD)...
    For YouTube (and other web sites that use Flash-based video), install ClickToPlugin Safari extension
    http://hoyois.github.com/safariextensions/clicktoplugin/
    In YouTube, with Safari and ClickToPlugin, HTML5-based version of the video (which is there mostly for mobile devices like iPhone and iPad) often gets played instead of the Flash-based version.  HTML5 video is more efficient, especially on PowerPC Macs.  On my Power Mac G5, playback is noticeable better with the HTML5 content (compared to Flash).  Also, ClickToPlugin prevents Flash-based ads on the same web page from loading, taking more load off the aging G5 processor.
    Create a new user account in System Preferences Accounts pane.  Log out and log in to the new user account (do not use Fast User Switching).  Do the things you normally to on your iMac using the new user account.  If things seem to run better in the new account, you should investigate what is happening in your normal user account.  You may have background processes (that start up automatically when you log in) which may or may not be necessary.  These may come from apps you have installed over time, which you may no longer use regularly.

  • Getting the most out of my 7100i

    I really need someone's help.  I'm not that Blackberry savvy.  I've had my device for about 2 years, and still only use it primarily for the phone and occasional email.  I originally got the phone because my company utilized the direct connect and email alot. I no longer work fot that company, but am still locked into my phone contract.  So, I want to get the most out of my phone, and I don't know all of it's capabilities.  Specifically, I want to know if it has capabilities similar to my Palm z22.  I'm tired of carrying 2 devices.
    Any input/advice/criticism(preferably constructive) would be most appreciated.
    Thanks from a blackberry illiterate.

    Other than upgrading the hardware (you could also uprade to a larger faster hard drive or even SSD)...
    For YouTube (and other web sites that use Flash-based video), install ClickToPlugin Safari extension
    http://hoyois.github.com/safariextensions/clicktoplugin/
    In YouTube, with Safari and ClickToPlugin, HTML5-based version of the video (which is there mostly for mobile devices like iPhone and iPad) often gets played instead of the Flash-based version.  HTML5 video is more efficient, especially on PowerPC Macs.  On my Power Mac G5, playback is noticeable better with the HTML5 content (compared to Flash).  Also, ClickToPlugin prevents Flash-based ads on the same web page from loading, taking more load off the aging G5 processor.
    Create a new user account in System Preferences Accounts pane.  Log out and log in to the new user account (do not use Fast User Switching).  Do the things you normally to on your iMac using the new user account.  If things seem to run better in the new account, you should investigate what is happening in your normal user account.  You may have background processes (that start up automatically when you log in) which may or may not be necessary.  These may come from apps you have installed over time, which you may no longer use regularly.

  • HT1473 Had to "repair" Itunes today after error messages would not let me open. I can no longer sync my phone to computer without deleting all of the contect on my phone. I don't want to do that! I am trying to get the music from my Iphone to my Itunes li

    Little background:
    Went to open Itunes, error message told me I was missing files and I was unable to open. I deleted Itunes and re-downloaded and received same message. I then "repaired" Itunes from my "unistall/change" program menu. The error message then changed to being "unable to read my library of music." So I fixed that by following some other forum directions (Went to My Computer/Music/Itunes then dragged the most recent Itunes Library selection to my desktop, then opened the folder under music titled "Previous Itunes library" and moved that file into that folder. Thankfully that worked... sort of... I have some music in my library. None of the music from my super old Limewire library, or any recent music from my phone. All of which was in my library last night. Not to mention the HOURS of cd's I burned to Itunes over the entire weekend. Hundreds (at least) of songs are missing.
    So I attempted to sync my phone and was told it would delete all of the files in my phone to replace with files from my computer. Which is NOT what I want to happen. Trying to get music FROM my phone to my computer.
    Can someone please help me simply sync my phone to my computer? And then somehow get the music from my Limewire library to my Itunes library? I know I may not get the burned music back... But that sure would be amazing.
    I am at a loss. Apple won't help unless I pay them... So hopefully this looks familiar to someone!
    Thanks,
    Katie

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • I'm relatively new to Mac and want to try and get the most out of the new MacBook Air.   My wife and I have been sharing the same Apple ID. We both have iPhones - she has a 5 and I've got a 4S.   We only have one copy of iTunes and we have been sharing t

    I'm relatively new to Mac and want to try and get the most out of the new MacBook Air.
    My wife and I have been sharing the same Apple ID. We both have iPhones - she has a 5 and I've got a 4S.
    We only have one copy of iTunes and we have been sharing the account. (She doesn't really use the computer for anything beyond writing the odd weekend assignment.)
    Would I be better off setting her up with her own and making her as a separate user on the computer? Would this require much work?
    In recent times with updates, we have a few problems with the duplication of texts and that sort of thing. Both of our texts are stored on the computer and that sort of thing. Also, sometimes texts I send her are sent through to me  from her, if that makes any sense.
    Anyway, I don't really want to overly complicate matters when it comes to accounts etc, but I wanted to know if a fresh Apple ID would be the best thing or even a new user?
    Any tips etc would be greatly appreciated
    Thanks in advance
    MacBook
    I have this question too (0) Reply

    Your question is almost too much a personal one, begging the question "do we (husband and wife) feel comfy sharing one account on the Mac"   maybe thats why nobody answered you.
    It doesnt complicate anything, but it adds steps for switching accounts on the Mac/ purchases etc. of course
    since your question is mostly personal, ..I wont answer THAT part of it, but creating a new account is easy.....messing with switching back and forth is also a personal preference 'issue' as well.   I prefer to keep things simple, but...........you and yours,  I dont know.......
    http://support.apple.com/kb/PH11468

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

Maybe you are looking for

  • How to reference to a relative group of cells in numbers for iOS ?

    Hi, I'm trying to use numbers on my iPhone to track my daily work expenses, inputting my data through a formulary. What I've come up with so far is a 2-sheet, 1-formulary document. The first sheet contains the raw data : week number, date, place, exp

  • Safari does not correctly fire on the Javascript onmouseout event

    Hello, i am experiencing problems with javascript in safari. Safari seems not to fire correctly on a onmouseout event on a div tag. The script is only beeing executed if the cursor leaves the div on the bottom edge. All other leaves will be ignored b

  • Hi preventing parallel processing for a program treating open dataset

    Hi Has anyone come into a situation where he had to do an inbound interface (i.e using open dataset by scanning all the file in AL11) how do you treat program running in parallel in this situation. what i mean is that if the same program is doing an

  • Problema in the installation of BW 3.5

    hello all, i`am installing BW 3.5 on web application server.after installing BW JAVA components i`am getting the errors in the post installation activity of configuring those componets.i`am entering the correct values of username,password etc for eac

  • CS3: Cannot open RAW/NEF files from my Nikon

    After I reinstalled my harddisk and my CS3, Bridge and PS will not open the RAW files from my Nikon D90. Wgat do I do?