Open files in folder and repeat

How can i open the files in the folder  if you scroll to "--open file items of the name folder" you can see where I am struggling to run the script.
How should this look to run, currently the script runs, with no errors or anything appearing in the folders.
property type_list : {"PHOTOSHOP"}
property extension_list : {"psd"}
--Setup list of folders and process details of folders
set dtF to paragraphs of (do shell script "ls -F ~/Desktop | grep '/' | cut -d'/' -f1")
repeat with i from 1 to number of items in dtF
          set this_item to item i of dtF
          if this_item does not start with "2_" and this_item does not start with "Hot" and this_item does not start with "Press" then
                    try
                              set folderPath to this_item
                              set {oldTID, my text item delimiters} to {my text item delimiters, ":"}
                              set folderName to last text item of folderPath
                              set my text item delimiters to "_WK"
                              set FolderEndName to last text item of folderName
                              set brandName to first text item of folderName
                              set my text item delimiters to "_PSD"
                              set weekNumber to first text item of FolderEndName
                              set my text item delimiters to oldTID
                              set theFolder to ("Hal 9000:Users:matthew:Desktop:" & folderName)
                    end try
          end if
  --set up names to destination folders and create locally based on brand name and week number
          try
                    set this_local_folder to "Hal 9000:Users:matthew:Pictures:2011-2012"
                    set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
                    set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
                    set localBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", localBrandFolder)
                    set localBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", localBrandFolder)
  --set up names to destination folders and create over Netwrok including an already exisiting folder
                    set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2012:"
                    set networkWeekFolder to my getFolderPath("WK" & weekNumber, this_Network_folder)
                    set networkBrandFolder to my getFolderPath(brandName, networkWeekFolder)
                    set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkBrandFolder)
                    set website_images to "DCKGEN:Website_Images:"
  --set up names to destination folders and create over Netwrok for FTP collection (based on a mounted drive)
                    set this_ftp_folder to "Impulse:"
                    set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
                    set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
                    set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
                    set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
  --taking the folder identify which process it must follow.
--open file items of the name folder
                    if brandName is equal to "Diva" then set filelist to (files of alias theFolder whose ¬
                              file type is in the type_list or name extension is in the extension_list)
                    repeat with alist in filelist
                              tell application "Finder"
                                        set thefile to aFiles as alias
                              end tell
                              tell application "Adobe Photoshop CS5.1"
  activate
                                        set myOptions to {class:JPEG save options, quality:12}
                                        tell front document
  --If the quick mask mode has been left on then delete the channel Quick Mask
                                                  if (quick mask mode) then delete channel ¬
                                                            "Quick Mask"
                                                  delete layer "Original Image"
  flatten
  resize image resolution 300 resample method none
  --sharpen image
  filter current layer using unsharp mask with options ¬
                                                            {amount:80, radius:3.2, threshold:0}
  save in file ((localBrandFolder_High_Res as string) & name) as JPEG with options myOptions without copying
                                                  tell application "Finder"
  duplicate last file of localBrandFolder_High_Res to ftpBrandFolder_High_Res with replacing
                                                  end tell
  --Prepare for Low RES by resetting image history
                                                  tell application "Adobe Photoshop CS5.1"
                                                            set current history state of current document to history state 3 ¬
                                                                      of current document
                                                  end tell
  resize image width 1020
  resize image resolution 300 resample method none
  filter current layer using unsharp mask with options ¬
                                                            {amount:80, radius:3.2, threshold:0}
  --add save to lowResFolder with same options
  save in file ((localBrandFolder_Low_Res as string) & name) as JPEG with options myOptions without copying
                                                  tell application "Finder"
  duplicate last file of localBrandFolder_Low_Res to website_images with replacing
  duplicate last file of localBrandFolder_Low_Res to ftpBrandFolder_Low_Res with replacing
  duplicate last file of localBrandFolder_Low_Res to networkBrandFolder_Low_Res with replacing
                                                  end tell
  --close file
                                                  close
                                        end tell
                              end tell
                    end repeat
          end try
end repeat
on getFolderPath(tName, folderPath)
          tell application "Finder" to tell folder folderPath
                    if not (exists folder tName) then
                              return (make new folder at it with properties {name:tName}) as string
                    else
                              return (folder tName) as string
                    end if
          end tell
end getFolderPath

This is how it looks.
A few things i need to add.
How can I save of time by not having to save to the multiple locations (i did try t using finder to duplicate last file of folder but that didn't work too well)
Also the line where it saves to website_images in need to exclude those files that end in _2 and _3 (or files that are exactly 16 digits long).
And finally if in photoshop it come across and error I need to skip the file and log it to a text file or just leave it open and continue.
Also how do I have it run in the background so i can continue to use the computer?
and finally any other way to make it run faster?
property type_list : {"8BPS"}
property extension_list : {"psd"}
--Setup list of folders and process details of folders
set dtF to paragraphs of (do shell script "ls -F ~/Desktop | grep '/' | cut -d'/' -f1")
repeat with i from 1 to number of items in dtF
          set this_item to item i of dtF
          if this_item does not start with "2_" and this_item does not start with "Hot" and this_item does not start with "Press" then
                    set folderPath to this_item
                    set {oldTID, my text item delimiters} to {my text item delimiters, ":"}
                    set folderName to last text item of folderPath
                    set my text item delimiters to "_WK"
                    set FolderEndName to last text item of folderName
                    set brandName to first text item of folderName
                    set my text item delimiters to "_PSD"
                    set weekNumber to first text item of FolderEndName
                    set my text item delimiters to oldTID
                    set theFolder to ("Hal 9000:Users:matthew:Desktop:" & folderName)
  --set up names to destination folders and create locally based on brand name and week number
                    set this_local_folder to "Hal 9000:Users:matthew:Pictures:2011-2012"
                    set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
                    set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
                    set localBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", localBrandFolder)
                    set localBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", localBrandFolder)
  --taking the folder identify which process it must follow.
  --taking the folder identify which process it must follow.
                    set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2012:"
                    set networkWeekFolder to my getFolderPath("WK" & weekNumber, this_Network_folder)
                    set networkBrandFolder to my getFolderPath(brandName, networkWeekFolder)
                    set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkBrandFolder)
                    set website_images to "DCKGEN:Website_Images:"
  --set up names to destination folders and create over Netwrok for FTP collection (based on a mounted drive)
                    set this_ftp_folder to "Impulse:"
                    set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
                    set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
                    set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
                    set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
                    if brandName is equal to "Diva" then
                              tell application "Finder" to set filelist to (files of alias theFolder whose file type is in the type_list or name extension is in the extension_list)
                              repeat with thefile in filelist
                                        set thefile to thefile as string -- convert Finder item to string
  --    D   I   V   A    Folder Photoshop Process
                                        tell application "Adobe Photoshop CS5.1"
  activate
  open alias thefile
                                                  set myOptions to {class:JPEG save options, quality:12}
                                                  tell current document
  --If the quick mask mode has been left on then delete the channel Quick Mask
                                                            if (quick mask mode) then delete channel "Quick Mask"
                                                            (delete layer "Original Image") flatten
  resize image resolution 300 resample method none
  --sharpen image
  filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
  save in (localBrandFolder_High_Res & name) as JPEG with options myOptions without copying
  save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
  --tell application "Finder"
  --duplicate last file to folder ftpBrandFolder_High_Res with replacing
  --end tell
  -- example : duplicate file (localBrandFolder_High_Res & name) to folder localBrandFolder_Low_Res
  --my duplicateFile(localBrandFolder_High_Res & name, localBrandFolder_Low_Res) --  use the handler to duplicate file
  --Prepare for Low RES by resetting image history
                                                            set current history state to history state 3
  flatten
                                                            resize image width 1920
  resize image resolution 300 resample method none
  filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
  --add save to lowResFolder with same options
  save in (localBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
  save in (networkBrandFolder_Low_Res) as JPEG with options myOptions without copying
  save in (ftpBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
  save in (website_images & name) as JPEG with options myOptions without copying
                                                            close
  --my duplicateFile(localBrandFolder_Low_Res & name, aFolderPath) --  use the handler to duplicate file
                                                  end tell
                                        end tell
                              end repeat
  -- end brandName = "Diva"
                    else if brandName is equal to "another brandName 1" then
  --another code
                    else if brandName is equal to "another brandName 2" then
  --another code
                    end if
          end if
end repeat
on duplicateFile(tFilePath, folderPath)
          tell application "Finder"
  duplicate file tFilePath to folder folderPath with replacing
          end tell
end duplicateFile
on getFolderPath(tName, folderPath)
          tell application "Finder" to tell folder folderPath
                    if not (exists folder tName) then
                              return (make new folder at it with properties {name:tName}) as string
                    else
                              return (folder tName) as string
                    end if
          end tell
end getFolderPath

Similar Messages

  • How can i open the directory/​folder and read all the files inside it in order and then close it?

    How can i open the directory/folder and read all the files inside it in order and then close it? any example would be nice.
    thanks

    In the File I/O>>Advanced File Functions Palette is a function named "List directory". This function will give you two arrays. One contains the names of all subdirectories the other the names of all files. If you want to sort them by name use the array sort function. If you want to sort them by another attribute use the File/Directory Info function to get more data. Use a cluster which contains the attribut to sort and the original index of the name. Then sort this array.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • A magazine's app on my iPad has stopped working.  When I open the Newsstand folder and click on the app, the screen dims briefly, then returns to the Newsstand folder. The other app in my Newsstand folder (Wall Street Journal) opens without any problem.

    A magazine's app on my iPad has stopped working.  When I open the Newsstand folder and click on the app, the screen dims briefly, then returns to the Newsstand folder. The other app in my Newsstand folder (Wall Street Journal) opens without any problem, and this magazine's app opens just fine on my wife's iPad.
    I have deleted the app and reinstalled it from the Apple store and that makes no difference.  I have also done a hard reboot on my iPad with no result.
    Any thoughts about what might be wrong? 

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program. This problem appears after opening 4 a 5 files.

    Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program.
    This problem appears after opening 4 a 5 files, rebooting helps another 4 a 5 times and appears again.

    I'd recommend reposting in the Boot Camp forum, that is where the Boot Camp and Windows gurus hang out.
    Good luck.

  • "Can't open file; skipping it and continuing" Part2

    I am also having a problem with iMovie 3 not being able to import my dv clip. The clip in it's entirety is about 15 minutes long, way past the 9 minute minimum. When I open the move project containing that clip it only imports the first 1.5 minutes, when I import it I get and error of -40, and knowing that it plays the entire 15+ minutes as qt movie I try to drag the clip into the time frame and get "Can't open file; skipping it and continuing". The clip works fine in iMovie HD at my computer at work. Can I try to splice the clip into smaller clips and exporting to use it at home?

    http://www.danslagle.com/mac/iMovie/tips_tricks/6003.shtml

  • I can't double click in order to open file or folder

    Dear apple support team,
    I have the problem with open file or folder when using Mountain Lion, I can't open file or folder by double click in it. With Lion i can do it.
    Please advice for me, i feel use Mountain Lion is difficult.

    Are you tapping to click, or pressing down the trackpad until it clicks? If you're tapping, try pressing.

  • Why can't I open a playlist folder and drag and drop playlists in it?

    I have hundreds of playlists that I am trying to organize via playlist folders. Right now I have to select a single playlist and drag it all the way to the top to the selected playlist folder. That is very tedious and time consuming! I have tried to open the playlist folder and just drag and drop the playlist but no go on that. Is there a way to move multiple playlists at the same time to the same playlist folder?

    Sorry, I misunderstood your question.
    I found no way to drag multiple playlists unless I collect them into a folder first and then drag that folder all the distance.
    But you could try to shorten the way you have to drag the playlist, by collapsing all folders but the one you are working on.
    I keep one big folder, that usually hold all my playlist and playlist folders.
    When I want to rearrange certain folders I move them from this container and close the folder containing all the rest. Then I can move the from one folder to the other without too much scrolling.

  • Loop through the excel files in folder and sub folder

    hi all
    I need to loop  through all the excel fies in a folder and its sub folder which contain excel files 
    actually, my excel files contain a column  with sdate and it contain different dates in which  has to get the max  date my query is 
    "select * from  @[User::filename] where sdate=(select max(sdate) asi  from @[User::filename] )"
    loop  all the excel file in folder and its sub folder

    Take a look at the Foreach Loop.
    Here is an article about it.
    Andy Tauber
    Data Architect
    The Vancouver Clinic
    Website | LinkedIn
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Regarding opening the remote folder and files

    hello,
    I am developing a struts web application through which a user would be able to see the remote files and folders and view it upon selecting the particular file into the JSP.
    I have created a onclick event in javascript which will present a user a pop up with the browse option using the <input type="file" name="myfile"> html tag. but when I click on the browse button it is showing me the local folders on my machine. Is there any way where I can pass the remote machine name and path of the folders in this tag so that when I click on the browse button it will show me remote machine folders and hence I can select the remote files. I am setting the remote machine name in property file.
    Thanks

    You can't. You need to present the folders and files and download links yourself with help of java.io.File in servlet and JSTL c:forEach in JSP and of course a bunch of HTML/CSS to present it nicely in sort of tree.

  • Shift is not opening file on EHD and I don't have privileges : (

    It is embarressing how much trouble I am having with iTunes. I have put my library on an EHD (correctly through consolidating), and I understand I should start iTunes while pressing shift. But this is not properly directing iTunes open the music folder on my EHD, iTunes continues do open the folder in my recycle bin. Admittedly, I have not emptied the recycle bin, but should that matter?
    To make matters worse, I entered Dante's inner rings when the error appeared "An error occured while updating the default player for audio files types. You do not have enough access privileges for this operation."
    Any suggestions, please. Thanks-------
    Message was edited by: EasilyConfused

    Hi
    Thank you for responding. I did consolidate onto the EHD. I have told iTunes in preferences to open the folder that is on the EHD. But when I open iTunes I have nothing in it. Which is a change from a few minutes ago, but I am not sure if its a good change.
    I am concerned that the error may be what is causing the trouble.
    I was just messing again with the shift key thing, prior to reading your response, that process was suggesting to me that it wants me to create libraries with one song in each. Again ... I'm Easily Confused.
    So if I understand correctly, I do not need to try to make the shift thing work. There is a different reason that iTunes will not find the folder on my EHD. Could it have to do with the error? "An error occured while updating the default palyer for audio files types. You do not have enough access privileges for this operation"
    The trash has "iTunes Music" with 3,444,172KB. This is the folder that I put in the recycle bin after I consolidated.

  • I can open my all folder and get error

    Hello
    whenever I opened  my any Folder (on desktop, In C D F driver) then got that message please give me solution Error is below... 
    this file does not have a program associated with if for performing this action. please install a program, or if one is already installed , create an assoction in the Default program control peanel.

    Hello Ved1987,
    What is your current situation?
    Have you tried the solution as MVP S.Sengupta mentioned?
    Have you made any change before this issue?
    Please try to restore the defaults for Folder Option and check if the issue still exists.
    Open Windows Explorer -> click Organize on tool bar-> Folder and search options -> On General and View Tab, click Restore Defaults.
    Additionally, we could try to use the fix tool to diagnose and repair Windows File and Folder Problems automatically
    http://support2.microsoft.com/mats/windows_file_and_folder_diag
    For more information, please take a look at the following question similar to this issue.
    http://answers.microsoft.com/en-us/windows/forum/windows_7-files/cannot-open-folders-or-drives-this-file-does-not/0b556956-a35c-e011-8dfc-68b599b31bf5?page=1
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • Problems opening files in QT and Preview

    Don't know where to put this as it doesn't appear to be a problem with QT or Preview alone. When I double click a file Preview would normally open, Preview opens, but the file does not. I can open the file manually by using the file menu in Preview and navigating to the file, but again, double clicking opens the program but not the file itself. QT, same exact situation except that in addition many movies which played fine in QT a couple days ago will no longer play. Instead I get the following error message: "QuickTime cannot open the file: "_____.mpg" a necessary data reference could not be resolved (-2000)." Don't know if it's related, but at the same time these problems started I also found I couldn't import movies into Toast -- "unsupported formats" -- even though I'd just burned copies with the same version of Toast 2 days earlier. Oh yes, I'm using QT 7.0.4, but problem started with 7.0.3 installed.
    G4 Digital Audio with OWC Dual 1.6GB Upgrade   Mac OS X (10.4.4)   1.25GB SDRAM

    Do you have a second user? If not create one, then log on as that user and see if files will open by double clicking and if Toast works correctly. If that user also has the problem, then it is a system level glitch. If not, then the problem is some file in your home user folder. Oh, put some test files in the Shared folder, and change their permissions so everyone can use them, with GetInfo. And be sure to make your test user an admin user.
    Francine
    Schwieder

  • Opening files crashes Applications and closes Finder

    As I've been unofficial Apple "IT" for our graphics team in a biased world of PC and our IT haven't the knowhow or inclination to help I need REAL support!
    After the last security etc update my iTunes crashed every time I tried to open it (Dock or Folder).
    Re-installed from the Apple web download.
    It now works.
    Now when I open a job folder through Finder on the desktop then select the file to open Finder closes.
    When I have an application open - say Photoshop CS2 - and go > File > Open, once I select the file to open Photoshop "unexpectedly quits".
    This goes for ANY application!
    BUT...If I drag a file to the application on the dock all is well?
    If I want to place images /graphics etc from one application to whatever is open I now can't
    I hold hands high as not being the most in-depth technical Mac man but have a general feel for most niggles having grown with Classic onwards!
    This something new and hopefully someone can shine a light?

    You should do it from Disk Utility on your start-up disk.
    What are permissions?
    Every file and folder on a Mac OS X hard drive has a set of permissions—settings that determine which user(s) have access to each item, and exactly what that access is. For example, permissions dictate whether or not a particular user can open and edit a particular file. But permissions also determine which items the operating system—or specific parts of it—can access and modify, and which files are accessible by applications.
    What does repairing permissions do?
    The Repair Disk Permissions function—the process that actually performs the task of repairing permissions—examines certain files and folders on your Mac’s hard drive to see if their current permissions settings are what Mac OS X expects them to be; if discrepancies are found, the offending permissions are changed to match the expected settings.
    (In Mac OS X 10.3 and later, repairing permissions also performs one other, unrelated, task: If the invisible /tmp symbolic link—which is linked to the /private/tmp directory—is missing, the link will be recreated.)
    Why is it necessary to repair permissions?
    If permissions on particular files are “incorrect”—i.e., not what Mac OS X expects them to be or not what they need to be for your Mac’s normal operation—you can experience problems when the operating system tries to access or modify those files. For example, you may have trouble logging in to your account, printing, launching applications, or even starting up your Mac. Similarly, if an application—from Apple or a third-party developer—needs access to a particular file or folder to function, and the permissions on that item have changed in a way that prevents such access, the application may not function properly (or at all). The Repair Disk Permissions function can fix such problems by ensuring that certain files have the correct permissions.
    There’s also a security element here: Many system-level files have permissions set a particular way so that applications or users that shouldn’t be meddling with those files can’t. If the permissions on certain system-level files somehow get changed so that access to those files is no longer restricted, you’ve got the potential for a major security issue. Repairing permissions can resolve such issues by resetting permissions on those files to prevent unauthorized access.
    How do I repair permissions?
    The Repair Disk Permissions function is part of Apple’s Disk Utility (in /Applications/Utilities). After launching Disk Utility, select the desired disk—generally your startup disk—in the list to the left, then click the First Aid tab. At the bottom of the First Aid panel, click the Repair Disk Permissions button. (You could instead use the Verify Disk Permissions option to preview any potential repairs before performing them, but for most users there’s little benefit from this extra step.)
    Permissions can also be repaired via the shell (Terminal) by using the command sudo diskutil repairPermissions /. However, it’s unlikely that the typical user will ever need to perform the task in this manner. It’s useful if for some reason Disk Utility itself won’t launch, or for repairing permissions on a remote Mac when connected via Remote Login (SSH), but otherwise you’re just as well served using Disk Utility.
    How does the Repair Disk Permissions function know what the “correct” permissions are?
    When you use Apple’s Installer utility to install software (such as Mac OS X itself or an OS X update), the installation package (the .pkg file you double-click to begin installation, or that Software Update downloads in the background for an automatic installation) generally leaves behind a receipt—a smaller Mac OS X package that includes information about every file installed, including the permissions each file should have. This receipt is placed in /Library/Receipts. When you run the Repair Disk Permissions function, it examines the receipts in the /Library/Receipts directory of the disk being repaired—which means the feature works only on volumes with Mac OS X installed—and compares the information in the receipt with the actual files on your drive. If the Repair Disk Permissions function finds a file with permissions that differ from what a receipt claims they should be, that file’s permissions are reset to their receipt-specified values. (If you’re curious about the information contained in a receipt, the easiest way to view it is to use the utility Pacifist; simply drag and drop the appropriate receipt into the Pacifist window and you’ll be presented with a list of all files installed by the similarly-named installation package, along with each file’s original permissions.)
    It’s worth noting here that although the function is called “Repair Disk Permissions,” what is actually happening is that files’ permissions are being reset or restored to a particular state. It’s possible—though not common—for a particular file’s permissions to differ from what a receipt claims they should be without those permissions actually being “broken.”
    Are all files affected by Repair Disk Permissions?
    No. As you may have inferred from the above description, only those files installed using OS X’s Installer utility and whose installation packages leave behind a proper receipt in /Library/Receipts are affected by the Repair Disk Permissions function. This means that most of the files affected by the Repair Disk Permissions function are system-level files, application files, or system add-ons—not applications installed by drag-and-drop, and not your documents or other user-level files.
    If repairing permissions is useful in general, why doesn’t Apple recommend it as routine maintenance?
    Apple does, quite explicitly:
    It’s a good idea to repair disk permissions as a regular maintenance task after upgrading or installing new software.
    That’s taken from Mac Help—in both Panther and Tiger—right on your Mac. Similar statements can be found in other Support articles.
    (With thanks to another user who posted this here)

  • How to make button to format a HardDrive or USB, How to remove all files from folder, and How to delete a process in listbox with a textbox?

    Hello!
    Here's the question with explaniation: How can i format the USB or Drive by clicking a button what's meant for it?
    and the second question what's also in vb.net: How can i remove all files from folder ? 
     Here's the Look of program: *
    Using the PC button, it will delete the free space of the PC, do you guys/girls know where it's location?

    Example Code:
    Imports System.Runtime.InteropServices
    Imports System.IO
    Public Class Form1
    Dim CBoxDrives As New ComboBox
    WithEvents FButton As New Button
    <DllImport("shell32.dll")> _
    Private Shared Function SHFormatDrive(ByVal hwnd As IntPtr, ByVal drive As UInteger, _
    ByVal fmtID As UInteger, ByVal options As UInteger) As ULong
    End Function
    Private Enum SHFormatFlags As Integer
    SHFMT_ID_DEFAULT = &HFFFF
    SHFMT_OPT_FULL = &H1
    SHFMT_OPT_SYSONLY = &H2
    SHFMT_ERROR = &HFFFFFFFF
    SHFMT_CANCEL = &HFFFFFFFE
    SHFMT_NOFORMAT = &HFFFFFFD
    SHFD_FORMAT_FULL = 0 ' full format
    SHFD_FORMAT_QUICK = 1 ' quick format
    End Enum
    Private Sub FButton_Click_1(sender As System.Object, e As System.EventArgs) Handles FButton.Click
    If CBoxDrives.Text = "" Then
    MsgBox("No Drive Selected")
    Exit Sub
    End If
    Dim Iresult As ULong = SHFormatDrive(CType(Me.Handle.ToInt32, IntPtr), CUInt(Asc(CBoxDrives.Text.Substring(0, 1)) - Asc("A")), CUInt(SHFormatFlags.SHFMT_ID_DEFAULT), 1)
    End Sub
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    Me.Size = New Size(200, 100)
    With FButton
    .Size = New Size(50, 25)
    .Location = New Point(5, 5)
    .Text = "Format"
    End With
    Me.Controls.Add(FButton)
    With CBoxDrives
    .Size = New Size(50, 25)
    .Location = New Point(75, 5)
    .DropDownStyle = ComboBoxStyle.DropDown
    End With
    Me.Controls.Add(CBoxDrives)
    Dim DrivesFound As Integer = 0
    Dim allDrives() As DriveInfo = DriveInfo.GetDrives()
    Dim d As DriveInfo
    For Each d In allDrives
    If ((d.DriveType = DriveType.Fixed) Or (d.DriveType = DriveType.Removable)) AndAlso Environment.GetEnvironmentVariable("SYSTEMROOT").StartsWith(d.Name) = False Then
    CBoxDrives.Items.Add(d.Name)
    DrivesFound += 1
    End If
    Next
    CBoxDrives.SelectedIndex = DrivesFound - 1
    End Sub
    End Class

  • I am getting an error message that "no photos could be found on this device" when I plug in my ipad to my windows 8.  I open the dcim folder and it shows up empty, although I clearly have photos on my ipad.  I was able to do this just last week.  HELP!

    Help, I am trying to get my pictures from my ipad to my computer (windows 8) and I get the message that "no photos could be found on this device."  When I try to open the dcim folder, it shows up empty.  What can I do?  I have previously been able to import pictures easily.

    Hi, I had the same problem. I finally figured it out. Plug in the USB cord to your ipad, but beofre plugging it into your computer make sure your ipad is not in the locked or sleep mode. Once I did this, my photos showed up and started downloading. Hope that helps you!

Maybe you are looking for

  • ABAP-HR INTERVIEW QUESTIONS

    Hi All      I want ABAP-HR interview questions,I am attending my first abap-hr interview on thursday,      So i want what type of question i can expect from the interviewer.    If any one plz send to my mail. Thanks in advance

  • After update to 10.9.2, I cannot open a MS Office files on a shared Mac

    We have two Macs. Hubby's Mac can't open MS Office files from my Mac. The problelm is only one way. I can open those same files from my Mac and I can open Office files from hubby's Mac.  We both have Office 2011.  I get the following error message: W

  • Contact Assignment

    Hi folks, We are having a bit of a problem with contact assignment in the Webclient and I was wondering if anyone has experienced this before. If we select an activity partner it automatically adds each contact person associated with that activity pa

  • Consuming a Web Service in JSP

    Hi All, I have exposed a BAPI as a web service using the material available on SDN, I had searched a lot but I am not able to find a satisfactory material which guides about how to consume this web service in a JSP page, can somebody help me in this

  • Calendar Repeatedly stops syncing

    BB Z10 STL100-3 10.2.0.429 Outlook 2007 Only 1 Calendar on Outlook, nothing in personal calendar on phone. Calendar quits syncing - all else works.  IT resets the connection and everything works for a few days. Then I lose the calendar sync again. Th