Desktop full of zero KB files
Desktop full of zero kb files and I can not find a way to get rid of them. The computer is slow or sluggish.
Thanks for any help.
What's the name of those zero KB files? Can you delete them if you reboot?
Similar Messages
-
Drag and Drop image to desktop == Zero Byte File
Drag and Drop image to desktop == Zero Byte File
== This happened ==
Every time Firefox opened
== FireFox 3.6 OR Windows 7 64i have the same problem and Sun doesn't seem to have an answer to this question. The DnD works in Mac OS, but not on Window 2000/XP.
-
I'm using Professional Edition 2013. I try to generate a coverage report for a C project, using the command line interface.
In Visual, configuration of the Linker : Configuration Properties -> Linker -> Advanced -> Profile.
Then:
vsinstr.exe my.exe /COVERAGE
I've got messages from Visual that the instrumentation went well.
VSPerfCmd.exe /START:COVERAGE /OUTPUT:my.coverage
my.exe
VSPerfCmd.exe /SHUTDOWN
The my.coverage file is created. But it's a binary file, more or less full of zeros. Dropping it into Visual just opens it as a binary file. Full stop.
I've tried the same commands on very different .exe files and it seems like the my.coverage file has always the same content.
What am I doing wrong ?
ThxHi Fred35,
If you test it with other language project, how about the result? For example, a console app or winform app.
Reference:
http://www.codeproject.com/Articles/590346/CodeplusCoverageplusforplusRegressionplusTestsplus
Based on your description, I think the steps have no issue like this blog here:
http://blogs.msdn.com/b/cellfish/archive/2008/11/16/native-c-code-coverage-reports-using-visual-studio-2008-team-system.aspx
So I'm afraid that we would think about others. Maybe it is the dependent dll file issue.
http://stackoverflow.com/questions/17867591/code-coverage-in-visual-studio-2010-for-native-c-exe-dll
Best Regards,
Jack
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.
Click
HERE to participate the survey. -
Get only the filename not the full path of the file.
hi to all..
how can i get only the filename of the file not the full path and to be placed on a textinput.?
example:
when i'browse the file and select sample.txt
"C:\Users\user\Desktop\folders\sample.txt" this will be inputted on the textinput.
however, what i want to have is when i'browse and select a file..
textinput should only contain "sample".
does anyone knows how to do it?Hi cyrus@adobe,
How are you getting the full path of the file when you browse, I dont think for security reasons the Flash Player will aloow to do so. You can only get the file name not the full path of the file when you browse.
Are you using Flex4..?? I am not sure whether this is possible in Flex4..However if you are getting full path and if you wanted to show only the filename then you can just use theString class split function to acehive this..
var fullPath:String = "C:\Users\user\Desktop\folders\sample.txt";
var splitPath:Array = fullPath.split("\");
textInput.text = splitPath[splitPath.length-1];
Thanks,
Bhasker -
Copy doesn't work and creates zero bytes files that I can't delete.
After installing Yosemite (I am now using version 10.10.1) I had problems copying files.
Sometimes (not always) it doesn't copy files from a folder to another using the simple cmd-c cmd-v procedure. Even if both folders are on the desktop. It creates many empty files (white icons, zero bytes) named as my files, but the copy isn't happening.
The main problem is that I cannot delete the files anyhow. If they are in a folder I can delete the whole folder and empty the trash.
It doesn't happen everytime, but yesterday I had the same problem copying a few videos to the desktop and I can't get rid of them (because I obviously can't delete the desktop folder...).
Can anybody help me? I need to be able to delete those zero bytes files that are now on my desktop.
I tried to drag them into a folder but it wouldn't let me. As well, I tried to copy the same files to the desktop to see if they disappeared, but the new files copied were renamed with 2 (ex. I had the zero byte file called IMG_0705.MOV on my desktop. I tried to paste the same file and it appeared named as IMG_0705 2.MOV).
I don't know what to do...
ThanksTake it to an Apple store or AASP. How much it will cost will depend on their determination of the problems. To bad you didn't purchase extended AppleCare. No you don't get your money back for purchasing Lion.
-
Zero sized files and client download errors..
Frequently I see zero sized files being downloaded into the patch proxy spool area.
Sometimes it is the detectors file. Other times it is a whole heap of all_signed<patchid>.jar files. This basically breaks all future downloads of these patches to the clients.
If I go into the spool directory and delete the offending zero length files and re-issue the download command it works.
Also, on especially large patch files, the client will report errors during the download. The patch proxy is still downloading the patch in the background but the client times out waiting for it to come down.
I will paste logs etc when I see it again.I encountered an issue today with zero length patch jar File
17# cd /var/sadm
doe63 - root - /var/sadm - (-ksh)
18# find . -name "*120068*"
./spool/patchsvr/%2Fall_signed%2F120068-02.jar
doe63 - root - /var/sadm - (-ksh)
19# ls -l ./spool/patchsvr/%2Fall_signed%2F120068-02.jar
-rw-r--r-- 1 root root 0 Feb 22 10:00 ./spool/patchsvr/%2Fall_signed%2F120068-02.jarThese were the entries in the catalina.out on the patchsvr
Feb 22, 2007 10:00:02 AM com.sun.swup.updateserver.net.ConnectionFactory getConnection
INFO: Connecting to https://getupdates1.sun.com/
/usr/lib/cc-ccr/bin/ccr -g cns.assetid
/usr/lib/cc-ccr/bin/ccr -g cns.patchsvr.cachelocation
Feb 22, 2007 10:00:04 AM com.sun.swup.updateserver.security.SignatureValidationUtil validateJarFile
SEVERE: error in opening zip file
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at java.util.jar.JarFile.<init>(JarFile.java:84)
at com.sun.swup.updateserver.security.SignatureValidationUtil.validateJarFile(SignatureValidationUtil.java:265)
at com.sun.swup.updateserver.handler.CachingProxyValidationHandler.validate(CachingProxyValidationHandler.java:195)
at com.sun.swup.updateserver.handler.CachingProxyValidationHandler.handleRequest(CachingProxyValidationHandler.java:86)
at com.sun.swup.updateserver.UpdateServlet.processRequest(UpdateServlet.java:80)
at com.sun.swup.updateserver.UpdateServlet.doGet(UpdateServlet.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:595)
Feb 22, 2007 10:02:40 AM com.sun.swup.updateserver.UpdateServlet processRequestOn the client I got
3# smpatch update -i 120068-02
Failure: ERROR: Problem encountered while downloading a patch. Determine if the file system containing the patch download directory is full; the file system is corrupted; or the directory permissions were changed during download.
Installing patches from /var/sadm/spool...
WARNING: The installer cannot find the patch.
/var/sadm/spool/patchpro_dnld_2007.02.22@10:04:17:MET.txt has been moved to /var/sadm/spool/patchproSequester/patchpro_dnld_2007.02.22@10:04:17:MET.txtAfter deleting the jar file of the patch mentioned above it worked. -
When I ran a smart folder consisting of all files with Zero bytes, I got a dozens of them (including a lot in the preference folder). Is this normal? Should I be trashing any of these or do they serve some purpose? I have a MacBook Pro running OSX 10.7.4.
This turned out to be a user error. However, I realized this after fixing the error by deleting the follwoing files:
Check if the issue exists with another user? Continue if the issue is not reproducible.
Delete all the preferences from ~/Library/Preferences/*.*
This fixed the issue. However, while deleting the plist files, I realized that the issue was as a result of bad task I created in Automator. The process was replicating the zero byte files. The issue could've been resolved had I traced my steps back to the time when I first saw the problem. Could've save me some time in customizing my desktop from scratch. -
I have photoshop C6 on my MAC Pro and want to install it on my new MAC desktop. I sent the files with AirDrop but photoshop wont open I get an error message that it cant find the Library. Any thoughts?
download the installation files and install using your serial number or adobe id,
Downloads available:
Suites and Programs: CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
Acrobat: XI, X | 9,8 | 9 standard
Premiere Elements: 12 | 11, 10 | 9, 8, 7
Photoshop Elements: 12 | 11, 10 | 9,8,7
Lightroom: 5.5 (win), 5.5 (mac) | 5.4 (win), 5.4 (mac) | 5 | 4 | 3
Captivate: 8 | 7 | 6 | 5
Contribute: CS5 | CS4, CS3
Download and installation help for Adobe links
Download and installation help for Prodesigntools links are listed on most linked pages. They are critical; especially steps 1, 2 and 3. If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'. -
In IE, while saving a file it is taking the full path with the file name
Hi,I am using Tomcat5.5. In one page of my website, there is code responsible for saving an image from the server to the client machine. whenever i am doing this Mozila the file is getting saved with desired name. But in IE it takes full path of the file in the server directory along with its name while being saved in the client machine.Below is the code responsible for this. Plz Help.
DiskFileUpload fu = new DiskFileUpload();
List fileItems = fu.parseRequest(request);
Iterator itr = fileItems.iterator();
while(itr.hasNext())
FileItem fi = (FileItem)itr.next();
//Check if not form field so as to only handle the file inputs
//else condition handles the submit button input
if(!fi.isFormField())
if(fi.getFieldName().equals("FileImage"))
if(fi.getSize() < 300000)
if(fi.getSize()!=0)
java.util.Random rd = new java.util.Random();
int random = rd.nextInt(100000);
String img_code = random + "";
if(fi.getContentType().equals("image/jpeg") || fi.getContentType().equals("image/pjpeg") || fi.getContentType().equals("image/gif") || fi.getContentType().equals("image/png") || fi.getContentType().equals("image/x-png") || fi.getContentType().equals("image/bmp") || fi.getContentType().equals("image/wmp") || fi.getContentType().equals("application/octet-stream") || fi.getContentType().equals("audio/wav") || fi.getContentType().equals("audio/x-wav") || fi.getContentType().equals("audio/AMR") || fi.getContentType().equals("audio/amr") || fi.getContentType().equals("audio/mpeg") || fi.getContentType().equals("audio/mp4a-latm") || fi.getContentType().equals("audio/x-realaudio") || fi.getContentType().equals("audio/x-pn-realaudio") || fi.getContentType().equals("audio/x-pn-realaudio-plugin") || fi.getContentType().equals("audio/midi") || fi.getContentType().equals("audio/mid") || fi.getContentType().equals("audio/x-midi") || fi.getContentType().equals("audio/x-mid") || fi.getContentType().equals("audio/x-tone-seq") || fi.getContentType().equals("audio/imelody")
|| fi.getContentType().equals("video/mp4v-es") || fi.getContentType().equals("video/mp4") || fi.getContentType().equals("video/3gp") || fi.getContentType().equals("video/3gpp") || fi.getContentType().equals("video/mpeg") || fi.getContentType().equals("video-h263-2000"))
System.out.println("Content from FileItem : "+fi.getContentType());
File tempfile = new File(fi.getName());
String imageFile=tempfile.getName();
out.println("imageFile:" +imageFile);
imageFile= imageFile.replace(':','_');
imageFile=imageFile.replace('\\','_');
imageFile= imageFile.replace('/','_');
imageFile= imageFile.replace(' ','_');
System.out.println(imageFile);
out.println("imageFile:"+imageFile);
int extIndex=0;
String ext="";
extIndex = imageFile.lastIndexOf(".");
ext = imageFile.substring(extIndex+1);
if( ext.toLowerCase().equals("jpg") || ext.toLowerCase().equals("jpeg") || ext.toLowerCase().equals("jpe") || ext.toLowerCase().equals("bmp") || ext.toLowerCase().equals("gif")|| ext.toLowerCase().equals("png") || ext.toLowerCase().equals("wbmp")
|| ext.toLowerCase().equals("amr") || ext.toLowerCase().equals("mp3") || ext.toLowerCase().equals("mp2") || ext.toLowerCase().equals("mpga") || ext.toLowerCase().equals("wav") || ext.toLowerCase().equals("midi") || ext.toLowerCase().equals("mid") || ext.toLowerCase().equals("kar") || ext.toLowerCase().equals("ra") || ext.toLowerCase().equals("ram") || ext.toLowerCase().equals("rm") || ext.toLowerCase().equals("au")
|| ext.toLowerCase().equals("3gpp") || ext.toLowerCase().equals("3gp") || ext.toLowerCase().equals("mpeg") || ext.toLowerCase().equals("mpe") || ext.toLowerCase().equals("mpg") || ext.toLowerCase().equals("mp4") || ext.toLowerCase().equals("movie") || ext.toLowerCase().equals("avi") || ext.toLowerCase().equals("qt") || ext.toLowerCase().equals("mov") || ext.toLowerCase().equals("viv") || ext.toLowerCase().equals("vivo"))
File fNew = new File(application.getRealPath("/userImages/"),img_code+"_"+imageFile);
// ImagePath = imagepath+img_code+"_"+tempfile.getName();
ImagePath = imagepath+img_code+"_"+imageFile;
System.out.println("Image PAth : "+ImagePath);
// ImagePath = fNew.getAbsolutePath();
//out.println(fNew.toString());
ImageName = fNew.getName();
System.out.println("Image Name : "+ImageName);
out.println("ImageName:" +ImageName);
fi.write(fNew);
else
System.out.println("Invalid File Type : "+ext);
Error = "1: Invalid File Type/Extension : "+ext;
else
Error = "2: File uploaded is not valid.";
System.out.println("Content from FileItem : "+fi.getContentType());
System.out.println("invalid Content Type");
else
Error = "";
else
Error = "3: File uploaded is not valid. Make sure that the image size does not exceed 300KB";
System.out.println("File uploaded is not valid.");
else
session.setAttribute(fi.getFieldName(),fi.getString());
session.setAttribute("ImagePath",ImagePath);
session.setAttribute("ImageName",ImageName);
session.setAttribute("barcodepath",barcodepath);
//Added by Mutharasu on 30/08/2005
session.setAttribute("tagpath",tagpath);
Title = (String) session.getAttribute("txtTitle");
if(Title.length()==0)
Error = " Please Enter KoolTag Title : ";
Key = (String) session.getAttribute("txtKey");
URL = (String) session.getAttribute("txtURL");
System.out.println("Key: "+ Key +", URL:"+URL);
System.out.println("trace 5");
if (ImagePath.trim().length()==0 && ImageName.trim().length()==0) {
if (Key==null && URL==null)
throw new Exception("4: "+Error);
}Hi Vigneshwara,
Please reopen a new thread in
ASP.NET Getting Started forum because I can't move it there.
Best regards,
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.
Click
HERE to participate the survey. -
How to get the full path of a file
If the user selects a file through a browse button, Is there a way, I can get the full path of the file. The file can be from his local hard drive as well.. Can someone advise
To upload multiple files (example is for 3), try something like this.
== Form section ==
There would be three(3) file form fields for the selection of a file/document to upload, which
each being uniquely named.
<div style="clear: both;">
<cfinput type="file" name="upload_01" dir="ltr" lang="en" size="70" xml:lang="en">
</div>
<div style="clear: both;">
<cfinput type="file" name="upload_02" dir="ltr" lang="en" size="70" xml:lang="en">
</div>
<div style="clear: both;">
<cfinput type="file" name="upload_03" dir="ltr" lang="en" size="70" xml:lang="en">
</div>
== Processing section ==
Checks to see if any files / documents were selected for upload. If none were, then
displays an alert indicating as such. If at least one file/document was selected, then
the process would process the upload.
<cfif isdefined('form.upload_01') and trim(form.upload_01) eq "" and
isdefined('form.upload_02') and trim(form.upload_02) eq "" and
isdefined('form.upload_03') and trim(form.upload_03) eq ""
>
<p>Did not select any files to upload</p>
<cfelse>
<cfif isdefined('form.upload_01') and trim(form.upload_01) neq "">
<cffile
action="upload"
destination="C:\path\to\upload\files\to"
filefield="upload_01"
nameconflict="overwrite"
accept="
application/msword
, application/vnd.openxmlformats-officedocument.wordprocessingml.document
, application/vnd.ms-excel
, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
, application/pdf">
<cfcookie name="upload_01_doc" value="#cffile.serverfile#">
<cfcookie name="upload_01_doc_ext" value="#cffile.serverfileext#">
</cfif>
<cfif isdefined('form.upload_02') and trim(form.upload_02) neq "">
<cffile
action="upload"
destination="C:\path\to\upload\files\to"
filefield="upload_02"
nameconflict="overwrite"
accept="
application/msword
, application/vnd.openxmlformats-officedocument.wordprocessingml.document
, application/vnd.ms-excel
, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
, application/pdf">
<cfcookie name="upload_02_doc" value="#cffile.serverfile#">
<cfcookie name="upload_02_doc_ext" value="#cffile.serverfileext#">
</cfif>
<cfif isdefined('form.upload_03') and trim(form.upload_03) neq "">
<cffile
action="upload"
destination="C:\path\to\upload\files\to"
filefield="upload_03"
nameconflict="overwrite"
accept="
application/msword
, application/vnd.openxmlformats-officedocument.wordprocessingml.document
, application/vnd.ms-excel
, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
, application/pdf">
<cfcookie name="upload_03_doc" value="#cffile.serverfile#">
<cfcookie name="upload_03_doc_ext" value="#cffile.serverfileext#">
</cfif>
<cflocation url="completed.cfm" addtoken="no">
</cfif>
== Completed section ==
Can confirm to the person what files were actually uploaded, by displaying file name and file extension.
You can you use the file extension information to display a respective icon for the file type.
<cfoutput>
<cfif isdefined('cookie.upload_01_doc')>
01. #cookie.upload_01_doc# - #cookie.upload_01_doc_ext#<br /></cfif>
<cfif isdefined('cookie.upload_02_doc')>
02. #cookie.upload_02_doc# - #cookie.upload_02_doc_ext#<br /></cfif>
<cfif isdefined('cookie.upload_03_doc')>
03. #cookie.upload_03_doc# - #cookie.upload_03_doc_ext#<br /></cfif>
</cfoutput>
Leonard B -
How to get full path of a file uploaded using file control on a jsp ?
Hi all...
I have a jsp on which i am using a file element (input type="file") to upload files present on the physical file system.. Thats working fine.. But i want to retrieve the full path of the file uploaded for further computation.
What are the possible ways which can give me the full path ?? (e.g. "D:\data\text\Output.txt" )
Thanks all for attending the question..
Regards
PrasadSome browsers send the full path. Some do not.
You can not affect this in any way shape or form.
All you can count on receiving is a filename - no path information.
So you will have to have some other way for the user to pass along this information.
If they are uploading to a "remote web site" they could specify a folder to put the uploaded file in.
You could classify it and put all image files in "images" and all script files in "scripts" etc etc by default, and let the user deal with it in their own HTML.
Hope this helps,
evnafets -
In Mac how to get the Full name of a file Programmatically?
Hi Friends,
I am doing one Mac application for displaying the contents of a file. I can able to get some information about the file by using this code below...
NSDictionary *dict=[fileManager attributesOfItemAtPath:myPath error:nil];
Now I want to get the some other informations also like Full Name, copyRight, version... So Please suggest me how to get the full name of a file Programmaticallly?Your question doesn't make sense.
First off, if you are going to get the attributes of a file, you need its full name before you can do anything. So that's part one taken care of.
This function returns a dictionary full of typical file information (type, size, mod dates, etc.) as well as some HFS data (creator code, type code) which, I strongly suspect, are not "pulled out of the file" but rather generated on the spot. (See NSFileManager for the full list of attribute keys.)
The other items you hoped of retrieving are not part of the regular file system. Sure, a Truetype font has a copyright string and a version, but what about an HTML file? A PNG? A text file you just created?
There simply are no standard functions to retrieve copyright and version. -
Zero byte files not transferred with FTP Adapter
All,
I am seeing that zero byte files are not being transferred using FTP Adapter (SFTP type). Is there a known bug around this? Please respond if anybody have seen this behavior and resolved this issue. I am using 10.1.3.3.0
Thanks,
DipalThanks Marc,
I still have doubt if that is the case. When I tested the same from 10.1.3.3.1 windows platform and FTP being windows OS zero bytes files transferred OK. Do you think this is to do with OS or SOA version?
Thanks,
Dipal -
Folder Action + Move Finder Items = Zero KB files
I've got a folder action set that is supposed to run the Automator Action "Move Finder Items" on any file that gets placed in a specific folder (called "Folder A") and move it to "Folder B". I'm having an issue with larger files though.
As soon as I begin to transfer the file to "folder A" , the folder action runs and results in a "Zero KB" file in "Folder B".
Is there any way to keep the Folder Action from triggering until the file has completely copied to the folder with the Folder Action attached ("Folder A")?
A side note: I have this same folder action running on an iMac with Mac OS 10.6.3 and it works great . (This one was made with the newer version of Automator that shipped with 10.6 vs. Automator on 10.5 which made the action I am having trouble with)
Any input would be appreciated!There is a check in *Snow Leopard* to see if the items have completed their copy/download, but Leopard does not do any checking - the script is triggered immediately. You can add your own delay with a *Run AppleScript* action, though, for example:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #DAFFB6;
overflow: auto;"
title="this text can be pasted into an Automator 'Run AppleScript' action">
on run {input, parameters} -- wait for file copy to complete by testing the size of the containing folder
set theFolders to {} -- to handle items in different folders
set skippedItems to {}
repeat with anItem in the input -- get a list of unique folders
tell application "Finder"
get (container of anItem) as alias
if the result is not in theFolders then set the end of theFolders to the result
end tell
end repeat
repeat with aFolder in theFolders
set timeToWait to 30 -- time to wait for copy to complete
set interval to 2 -- test every interval seconds
set copied to false
tell application "Finder" to set currentSize to size of aFolder -- get initial size
repeat with timer from timeToWait to 1 by -interval -- check every interval seconds up to maximum time
delay interval
tell application "Finder" to set newSize to size of aFolder -- recheck size
if (newSize is equal to currentSize) then
set copied to true
exit repeat -- success
else -- update size
set currentSize to newSize
end if
end repeat
if not copied then set the end of skippedItems to quoted form of (aFolder as text) -- timed out
end repeat
showSkippedAlert for skippedItems
return input
end run
to showSkippedAlert for skippedItems
show an alert dialog for any items skipped, with the option to cancel the rest of the workflow
parameters - skippedItems [list]: the items skipped
returns nothing
if skippedItems is not {} then
set {alertText, theCount} to {"Error with waiting for items to copy", count skippedItems}
if theCount is greater than 1 then
set theMessage to (theCount as text) & space & " folders timed out"
else
set theMessage to "1 folder timed out"
end if
set theMessage to theMessage & " - copy of contents may be incomplete:"
set {tempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
set {skippedItems, AppleScript's text item delimiters} to {skippedItems as text, tempTID}
if button returned of (display alert alertText message (theMessage & return & skippedItems) alternate button "Cancel" default button "OK") is "Cancel" then error number -128
end if
return
end showSkippedAlert
</pre>
The action will check the folder sizes, and when there is no change (or the wait times out) the input items are passed on. -
My memory is full of "other" what files need to be deleted to free up more memory?
My memory is full of "other" what files need to be deleted to free up more memory?
https://discussions.apple.com/docs/DOC-5142
MacBook Pro (15-inch Mid 2012), OS X Mavericks (10.9), i7 500GB 16GB RAM iPhone5 iOS7.0.4
Maybe you are looking for
-
How do I create a second itunes account?
Is it possible to create a second account on itunes for my daughter with her separate ipod but using the same computer? It seems like it automatically syncs.
-
Need Clarification on Looping in Message Mapping.
Hi All, I'm trying to implement the Dynamic emailing as explained in the Michals blog. /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address I have this partially working for the scenario I have. XI will be
-
I published albums to MobileMe using usergroups (name/password). With my apple tv i cannot access the protected albums. I type the logins which work on Mac and PC but on AppleTV dont give access. I tried case sensitive. Any idea why login via AppleTV
-
hello, i changed my mediathek-folder due to space-problems and since then i am not able to fill the iphone (4) with music anymore. also i cant delete music in itunes, which already is on the iphone... HELP! does anybody know how to solve this problem
-
Calling function in data model
Hello All, I am having 1 issues in a report. Here is what i am doing. I created a type of varchar2 and created a function which will return me the output of type. this runs fine in sqlplus but when i put the same query in data model and join another