Tilde (~) added to file name?
The other day, iBooks Author began creating duplicate files on save with a tilde (~) character at the end of file name. Anyone know what's going on here and how to make it stop?
I'm wondering if it has anything to do with Lion 10.7.3, which I updated to the other day, right around the same time this started happening.
Maria
Maria Langer, Author
iBooks Author: Publishing Your First Book
K T wrote:
I believe that is a 'version' of your original file that only contains changes at a given point in time.
See Lion's Help on: versions
KT you are correct.
To see this in action place the file you are working on you desktop. Then make a few changes in iBooks Author and see the 'phantom file' appear too on your desktop.
Save a version of all your work and see the tilded version disapear since it is no longer needed.
Neat! and it is defintely a feature of LION.
I read through some more posts and noted you updated to include correctly this appears with other Apple files on Mac. I work with all kinds of documents on the desktop and then clean up after the day is done by moving them elsewhere. TexEdit and other programs, even Preview at times produces this tilde version for a few minutes. It is data not commited yet.
Similar Messages
-
Unwanted prefix of "Copy of " added to file name of opened Excel attachments
How can I stop the prefix of "Copy of " from being added to the file name when I save an Excel file that was mailed as an attachment?
It is very annoying to have to keep deleting that unwanted addition to my filenames.1) Don't open attachments - save them first and then open them.
2) You can use this code in the ThisWorkbook object of your Personal.xls:
Private WithEvents App As Application
Private Sub App_WorkbookBeforeSave(ByVal Wb As Workbook, ByVal SaveAsUI As Boolean, Cancel As Boolean)
If InStr(1, Wb.Name, "Copy of ") = 1 Then
Application.EnableEvents = False
Cancel = True
Wb.SaveAs Replace(Wb.FullName, "Copy of ", "")
Application.EnableEvents = True
End If
End Sub
Private Sub Workbook_Open()
Set App = Application
End Sub
HTH, Bernie -
Additional words added to file name
For certain forms, when the user submits the form the file name, as expected, is the name that I gave the form. But additionally, Adobe Acrobat Pro.pdf is added after the file name. See figure. Is there a way to keep the "Adobe Acrobat Pro.pdf" from being added?
Thanks,
MDawnI have a submit button that "clicks" a hidden button. The hidden button has script that verifies that all
required fields are filled in. Script on that button "clicks" another invisible button which opens email where
the user selects the email recipients.
I put the script you suggested in the PreSubmit event of the form, and then each of the Submit buttons and none of these worked.
Thanks,
MDawn -
How to auto save output with date added to file name, and email the results?
Hi,
We found a script to capture disk space usage, that automatically places the results into an Excel file. We would like the script to autosave this file to a specific directroy with the date ran as part of teh file name. We would then like these results to
be emailed to us if possible. (also if possible to highlight cell in red that is 5% OR less available disk space would be great)
Here is what we have:
$erroractionpreference = “SilentlyContinue”
$a = New-Object -comobject Excel.Application
$a.visible = $True
$b = $a.Workbooks.Add()
$c = $b.Worksheets.Item(1)
$c.Cells.Item(1,1) = “Machine Name”
$c.Cells.Item(1,2) = “Drive”
$c.Cells.Item(1,3) = “Total size (GB)”
$c.Cells.Item(1,4) = “Free Space (GB)”
$c.Cells.Item(1,5) = “Free Space (%)”
$c.cells.item(1,6) = "Name "
$d = $c.UsedRange
$d.Interior.ColorIndex = 19
$d.Font.ColorIndex = 11
$d.Font.Bold = $True
$d.EntireColumn.AutoFit()
$intRow = 2
$colComputers = get-content "C:\Servers.txt"
foreach ($strComputer in $colComputers)
$colDisks = get-wmiobject Win32_LogicalDisk -computername $strComputer -Filter “DriveType = 3"
foreach ($objdisk in $colDisks)
$c.Cells.Item($intRow, 1) = $strComputer.ToUpper()
$c.Cells.Item($intRow, 2) = $objDisk.DeviceID
$c.Cells.Item($intRow, 3) = “{0:N0}” -f ($objDisk.Size/1GB)
$c.Cells.Item($intRow, 4) = “{0:N0}” -f ($objDisk.FreeSpace/1GB)
$c.Cells.Item($intRow, 5) = “{0:P0}” -f ([double]$objDisk.FreeSpace/[double]$objDisk.Size)
$c.cells.item($introw, 6) = $objdisk.volumename
$intRow = $intRow + 1
$d.EntireColumn.AutoFit()
cls
Thank YouHi Phorbin1128,
The script below amy be helpful for you to save the Excel file with date in filename, and send email with the attachment of the excel report.
$erroractionpreference = “SilentlyContinue”
$a = New-Object -comobject Excel.Application
$a.visible = $True
$b = $a.Workbooks.Add()
$c = $b.Worksheets.Item(1)
$c.Cells.Item(1,1) = “Machine Name”
$c.Cells.Item(1,2) = “Drive”
$c.Cells.Item(1,3) = “Total size (GB)”
$c.Cells.Item(1,4) = “Free Space (GB)”
$c.Cells.Item(1,5) = “Free Space (%)”
$c.cells.item(1,6) = "Name "
$d = $c.UsedRange
$d.Interior.ColorIndex = 19
$d.Font.ColorIndex = 11
$d.Font.Bold = $True
$d.EntireColumn.AutoFit()
$intRow = 2
$colComputers = get-content "C:\Servers.txt"
foreach ($strComputer in $colComputers)
$colDisks = get-wmiobject Win32_LogicalDisk -computername $strComputer -Filter “DriveType = 3"
foreach ($objdisk in $colDisks)
$c.Cells.Item($intRow, 1) = $strComputer.ToUpper()
$c.Cells.Item($intRow, 2) = $objDisk.DeviceID
$c.Cells.Item($intRow, 3) = “{0:N0}” -f ($objDisk.Size/1GB)
$c.Cells.Item($intRow, 4) = “{0:N0}” -f ($objDisk.FreeSpace/1GB)
$c.Cells.Item($intRow, 5) = “{0:P0}” -f ([double]$objDisk.FreeSpace/[double]$objDisk.Size)
$c.cells.item($introw, 6) = $objdisk.volumename
$intRow = $intRow + 1
$d.EntireColumn.AutoFit()
$date=Get-Date -f yyyy-MM-dd
$filename = "D:\test\"+$date+".xlsx"
$b.SaveAs($filename)
$a.Quit()
Send-MailMessage -SmtpServer xxxxxxxxxx -To [email protected] -From [email protected] -Subject "test mail" -Body "file name is: $new_file" -attachment $filename
For more detailed information about the cmdlet Send-MailMessage, please refer to this article:
Send-MailMessage
I hope this helps. -
Adding the file name and path to a document
Is there a way to automatically generate the file name and path (i.e. 'P:\ARF530\BACKGROUND\diagram.ai') to a document without having to copy and paste from the explorer window?
Hi,
So to select the directory, in the WHNE-BUTTON-PRESSED trigger write,
:<block_name>.<path_item_name> := GET_FILE_NAME(' ', NULL, NULL, 'Choose any directory.', OPEN_FILE, FALSE);
IF SUBSTR(:<block_name>.<path_item_name>, LENGTH(:<block_name>.<path_item_name>)) != '/' AND SUBSTR(:<block_name>.<path_item_name>, LENGTH(:<block_name>.<path_item_name>)) != '\' THEN
:<block_name>.<path_item_name> := :<block_name>.<path_item_name> || '\';
END IF;and to open the file, write,
DECLARE
FT_File TEXT_IO.FILE_TYPE;
BEGIN
IF SUBSTR(:<block_name>.<path_item_name>, LENGTH(:<block_name>.<path_item_name>)) = '/' OR SUBSTR(:<block_name>.<path_item_name>, LENGTH(:<block_name>.<path_item_name>)) = '\' OR :<block_name>.<path_item_name> IS NULL THEN
MESSAGE('Please Enter file name before continue');
MESSAGE('Please Enter file name before continue');
RAISE FORM_TRIGGER_FAILURE;
END IF;
FT_File := TEXT_IO.FOPEN(:<block_name>.<path_item_name>, 'w');
END;Regards,
Manu.
If my response or the response of another was helpful or Correct, please mark it accordingly -
Adding the file name to each page of a pdf
I need to find a script that will allow me to add the file name of a pdf to each page within the pdf. I need the file name to appear in one of the corners of the pdf.
for example if the file name is 001.pdf then I need to somehow attach that so it appears in one of the corners of ach page within the pdf
I have to do this for 20,000 pdf files so any help would be massively appreciated.
thanks
JimI assume you have Acrobat Pro for editing, although you don't say.
This should get you started by showing how to extract the name of one file (that you have selected) in the Finder and then to pass this to a JavaScript that is executed by Acrobat:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFDDFF;
overflow: auto;">
tell application "Finder"
set theFile to selection as alias
set theTitle to name of theFile
end tell
tell application "Adobe Acrobat Pro"
open theFile
--now add theTitle to the bottom/centre of all pages
do script "this.addWatermarkFromText({ cText: \"" & theTitle & "\", nFontSize: 12, nHorizAlign: app.constants.align.center, nVertAlign: app.constants.align.bottom, nVertValue: 12});"
--uncomment one of these options
--close document 1 saving no
--close document 1 saving yes
end tell </pre>
I just noticed that you want the name in a corner - just change the word 'center' to 'left' or 'right'
Message was edited by: Bernard Harte -
Adding image file name and logo to image
Can you do batch processing of images to automatically insert the image file name, say at the bottom along with a logo, in black font. The logo stays constant but the image deatils will change with each image?
Can this be done in Lightroom or then the full Photoshop?
Thanks!I've taken the script mentioned above and modified it to the best of my abilities. Still getting the same error, unfortunately:
function main(){
var suffix ="cropped";
var docPath =Folder("~/Desktop");
if(!docPath.exists){
alert(docPath + " does not exist!\n Please create it!");
return;
var fileName =activeDocument.name.match(/(.*)\.[^\.]+$/)[1];
var fileExt =activeDocument.name.toLowerCase().match(/[^\.]+$/).toString();
var saveFile = new File(docPath +"/"+fileName+suffix+'.'+fileExt);
switch (fileExt){
case 'jpeg' : SaveJPEG(saveFile); break;
default : alert("Unknown filetype please use manual save!"); break;
if(documents.length) main();
function SaveJPEG(saveFile, jpegQuality){
jpgSaveOptions = new JPEGSaveOptions();
jpgSaveOptions.embedColorProfile = true;
jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
jpgSaveOptions.matte = MatteType.NONE;
jpgSaveOptions.quality = jpegQuality; //1-12
activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE); -
I have a script for adding the file name as a text layer in PS. This script called "AddFileName02.js" worked by placing the file in the scripts folder on the hard drive. This script worked for PS CS2 (and I think PS CS3). This script could then be accessed by <file><automate><scripts>
Now that I have PS CS5 I have tried to place this script into the same place in PS CS5, but it does not appear. (I restarted PS) As I see it there could be two possible problems.
1 The script has a .js extension and all other scripts in PS CS5 have a .jsx extention. So a newer version may be needed.
2 I have placed the script in the wrong folder.
Can anyone help?Just rename ist with the jsx-suffix and place it in the Presets > Scripts-folder.
If that does not work you could try the Photoshop Scripting Forum, though some of the regulars also do drop by in this Forum. -
File name trouble when exporting
Sometimes FCP is adding three characters (like for example #DD2) to the file name when exporting (cmd+e). I have never had trouble with this before. What can be the reason for this?
I don't know what's causing your problem. The only time I've seen additional characters added to file names is if the target drive is formatted as FAT16/32 and the file has to be broken into 2/4 GB chunks or if you are using compressor and you've set it up to append the preset name to the output name.
Is there anything unique about material source, processes, settings, etc when it happens vs when it doesn't?
Good luck,
x -
I need to export with artboard. Illustrator automatically adds a number to my original file name. It won't even let me replace the old file. It is extremely annoying and makes flow with other programs really hard because they can't auto update, since the file name changes. When you have multiple files, you can't be manually renaming all the time. Anyone knows how to fix this? Thanks.
This has been discussed a few times, and here is a summary of the usual solutions.
http://forums.adobe.com/message/2989508#2989508
What is it EXACTLY you are trying to do. Are you trying to export a single page from filename.ai and make it filename.psd, (without any number afterwards). In that case you could delete the extra artboards prior to export, and then you won't have to checked use artbaords as there is only one page. Otherwise I would plan ahead so your end result will be filename-01.jpg, filename-02.jpg, and then everytime you use export artbaords those names will replace.
I am happy with the function as is, and would prefer to have a serial number automatically after the name when checking use artboards. But sounds liek you and others desire more options and thte ability to turn off adding to the filename. -
I am not able to add videos to itunes. So I am not able to sync them with my IPhone4s.
I ve tried:
dragging to itunes,
minimize file name of mp4,
adding by file/folder, but still not adding.
WHY? Please help.This is very serious. Your computer got infected with ransom malware, Cryptowall.
Go here for further info.
CryptoWall 2.0 Anything Good about Buying you Keys? - General Security
CryptoWall and DECRYPT_INSTRUCTION Ransomware Information Guide and FAQ -
A script for adding the current date to file name?
I am working in Indesign CS3. I frequently save file as PDFs into a designated folder. I was hoping for help in writing a script that would apply the current date to the end of the file name, when saved into this folder. Some days, I save the same file several times, into this folder. I was also hoping there was a way to add a date and version, for example "filename_2.25.11(1).pdf" Is this possible? Can someone help me?
ok, I ended up with this test routine:
on adding folder items to this_folder after receiving added_items
tell application "Finder"
repeat with this in added_items
my checkifopened(this)
display dialog (name of this) as text
end repeat
end tell
end adding folder items to
on checkifopened(this)
set a to POSIX path of (this as alias)
repeat until 1 = 0
## don't like that one because it relies on an error msg ... so
(** try
set b to do shell script "lsof | grep " & quoted form of a
on error
exit repeat
end try**)
##so I use this one
set b to do shell script "lsof"
if b does not contain a then
exit repeat
else
say "still opened"
end if
end repeat
end checkifopened
this is a folder action that tests if the added file is still opened by an application... there is no delay between each test-loop since lsof takes some time to execute...
And after adding a timeout (just in case) to this function the final script looks like this:
on adding folder items to thefolder after receiving added_items
tell application "Finder"
set folderkind to kind of thefolder
set myfiles to every item of thefolder whose name does not contain "#" and kind is not folderkind
repeat with myfile in myfiles
set myfile_datestring to my get_datestring(creation date of myfile)
set myfilename to name of myfile
if (count of every character of myfilename) > 4 and (character -4 of myfilename) as text is "." then
set filestatus to my checkifopened(myfile, 60)
if filestatus = false then
display dialog "timeout on folder action"
else
set tmp to ((characters 1 through -5 of myfilename) & "#" & myfile_datestring & (characters -4 through -1 of myfilename)) as text
set myfilename to my checknamewith_pdfsuffix(tmp, thefolder, false)
set name of myfile to myfilename
end if
end if
end repeat
end tell
end adding folder items to
on get_datestring(mydate)
return year of mydate & "-" & (characters -2 through -1 of (("0" & (month of mydate as integer)) as text)) & "-" & (characters -2 through -1 of (("0" & (day of mydate as integer)) as text)) as text
end get_datestring
on checknamewith_pdfsuffix(n, D, looped)
--check if filename exists in D
-- so if "A File.pdf" exists it names it "A File 1.pdf","A File 2.pdf",...
#n = string of the filename
#D = file reference to the directory to check
#looped = boolean used for recursive loop...
tell application "Finder"
set thefiles to name of every item of (D as alias)
end tell
if thefiles contains n then
if looped = false then
set n to ((characters 1 through -5 of n) & "(1)" & (characters -4 through -1 of n)) as text
my checknamewith_pdfsuffix(n, D, true)
else
set tmp to (last word of ((characters 1 through -5 of n) as text) as integer)
set tmpcount to (count of characters of (tmp as text)) + 5
set tmp to tmp + 1
set n to ((characters 1 through (-1 * tmpcount) of n) & "(" & tmp & ")" & (characters -4 through -1 of n)) as text
my checknamewith_pdfsuffix(n, D, true)
end if
else
return n
end if
end checknamewith_pdfsuffix
on checkifopened(this, mytimeout)
## this file reference
## timeout in seconds
set a to POSIX path of (this as alias)
set startdate to current date
repeat until 1 = 0
## don't like that one because it relies on an error msg ... so
(** try
set b to do shell script "lsof | grep " & quoted form of a
on error
exit repeat
end try**)
##so I use this one
set b to do shell script "lsof"
if b does not contain a then
return true
else if ((current date) - startdate) > mytimeout then
return false
else
##say "still opened"
end if
end repeat
end checkifopened
to use this save this script in /Library/Scripts/Folder Action Scripts
and add this as a folder action to your folder...
The script processes all files inside that folder each time a new files is added... -
Adding a prefix to a file name if the prefix is not already there
I have a script that adds a prefix to a file name then moves the file from its source directory to a destination directory. The problem I am encountering is that if the destination directory is unavailable for any reason the file fails to move &
so remains in the source directory and then the next time the script runs the prefix gets added again so I sometimes end up with files that look like this:
"Prefix_Prefix_Prefix_Prefix_Prefix_Prefix_1234_20141020_9786_8404.tif"
I need to build in some kind of logic that prevents this from happening so that if the Prefix_ is there it doesn't add it again, but not I'm not sure what the best way to do this is. Here is the code that adds the prefix.
Get-ChildItem $Source\* -include *.jpg,*.tif,*.pdf -exclude *.log | % {Rename-item $_.Fullname ("Prefix_" + $_.Name)}
# When I wrote this script only God and I knew what I was doing. # Now, only God Knows!Another option, but I like Bill's better:
$prefix = 'prefix'
Get-ChildItem | ForEach {
If ($_.Name -notlike "$prefix*") {
Rename-Item -Path $_.FullName -NewName "$($prefix)_$($_.Name)"
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
File name replaced with Tilde (~), name already exists error
When exporting jpg files in Lightroom 4 I've recently had an issue with some of the files containing a tilde (~), the 43rd file in the series often gets it as well as a few others. So in the series one might be named 43-MA~1.jpg instead of the 43-Maegan-details.jpg that I originally named the file.
When I've tried to rename these files from the finder I get the error "name already exists". If I rename it to something totally different it works but if I then try to rename it the original filename I wanted it gives me the error again or reverts to the name with the ~.
I'm running 10.6.8, and the problem has been happening the past few weeks but I've never had the problem before. I can't figure out what is causing the problem and it's not every export but it's a huge hassle to try and rename the files.This is the one error message that I have gotten in years with Encore. In my case, I had created a Project to be used as a "template," and had done the layout, Imported the common Assets, and then used this as the basis for a 17 DVD set, just Importing the unique Assets to each. Everything went perfectly, until disc 15. Maybe I was sloppy, as I had just completed 14 such Projects that day, but when I went to Build, I got that error. I tried un-Linking and re-Linking Assets, and checked all Menus. Nothing - just that error. Flushed Media Cache, and only the error. I posted here, with the details and asking for ideas.
In the meantime, I just grabbed my "template" Project and Imported those same, unique Assets. Used my altered Menus from bad Project and did my linking, exactly (or so I thought) as I had just done. This time, the Build was successful and # 15 thru 17 went without a hitch.
I had Saved that bad Project, and several folk offered suggestions. I tried them all, but never could get it to Build. I always got that error. I finally gave up testing and chalked it up to OE on my part, but I never figured out what I had done wrong, as I really thought that it was by the numbers.
Based on my experience, I would just start a new Project, being careful in the workflow. That was the only thing that worked for me.
Good luck,
Hunt -
Adding file name in the sender Adaptor
Hi ,
I am facing some problem in adding file name .
The scenario is like this :
The file needs to be send from on system and needs to be Archived . Once processed, the archived file should be prefixed with ARCH_ so that it is not picked up again .And the other thing given is the file name used will be of the format XXX_YYY_nnnnnnnnnn.DAT where nnnnnnnnnn is the date stamp .
Please help it's urgent ......
Thanks and regards
AnitaHi,
if you can have XML achvived files you can use
standard
processing mode: Archive
with one swich you can set the timestamp mode
yyyMMdd-hhMMss-SSS_.
ref
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Regards,
michal
Maybe you are looking for
-
Depreciation run in 2007- batch posted in 2008.Csq: Can not close FY07
Hi SAP Guru, My client has an issue with a depreciation run of 12/07 posted in 12/08. FY=calendar year. How can this be solved since a depreciation run CANNOT be reversed. They created an extra asset acquisition in dec 2007 but forgot to run deprecia
-
Saving results displayed on jsp into a text file using struts actions
Hi, i am developing a web application using struts...the basic functionality of the system is to retrieve data from the database based on the search conditions given by the user. Hence for different search criteria there are different JSP result scre
-
Set value for textarea field in tabular report
Hi all, I need some help setting textarea values in a tabular report. The tabular report is for users to be able to build their own ad hoc report, by specifying which columns should be included and filtered. Here are the example tables: -- Table that
-
Hi I want to add a column in my query. This column is the sum of the net value and the tax ..please how can I do this without refering to ABAP development.. thanks in advance
-
Itunes 8.2.1 won't recognize my 3.0 iPhone
Version 8.2.1 is buggy. I am not the only user who is finding that this version of iTunes no longer recognizes my 3.0 iPhone. Occasionally it won't recognize my iPod Classic until I restart my iMac (circa 2007). My iPhone software is up to date (vers