Help Unlocking Template File
I recently took on a project helping out a colleague who had a Web Designer totally mess up her business. He created a good site for her, but dropped the ball on hosting it.
Long story short, he gave her a disc with the files. The large site is created with Templates. When I go in and try to edit a template, DW says the file is locked and I can only VIEW the file because it is locked.
Does anybody out there have an idea as to how I can unlock the specific template files to make changes?
What I would recommend doing is if you like the template, detach the template and save a new one and base those pages off of it.
If you click on Modify->Templates->Detach from Template, DW will allow you to edit the template code as if you are editing a plain page.
Similar Messages
-
please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!
Hi kevinv1987,
It doesn't sound like the PDF was password protected (or Adobe Reader would prompt you for a password). Instead, it sounds like that file may be marked locked by your operating system. Are you on Mac OS or Windows? In either case, here are instructions for removing the lock icon from the file:
Remove the Lock Icon from a Folder in Windows 7 (check Microsoft's website if you have a different version of Windows)
On Mac OS, select the file in the Finder, and choose File > Get Info. Then, just deselect the Lock checkbox.
Please let us know how it goes.
Best,
Sara -
In an Excel template file, can I set the Folder Path in the SaveAs Dialog box?
I have an Excel template file (xltm) and, with help from the forum, I now have a Workbook_BeforeSave subroutine to save the template as a macro enabled file (xlsm). I’m so thankful for that help from Edward in the forum.
I also want to set the default folder location to save the file. I really only need it when the template is saved as a new xlsm file, because if they open the xlsm file, it’s usually opened from the default folder path so any save would normally go back
to where the file was opened. However, with a template (even if the template is in the default folder) the Saved template reverts back to the user’s documents folder.
Is there a good way to do this?
I tried to modify the Workbook_BeforeSave code like this:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim FolderDir As String
Dim FileNameVal As String
FolderDir = "Z:\save\data\place\"
If SaveAsUI Then
If Dir(WorkBookFolder, vbDirectory) <> "" Then
Application.DefaultFilePath = WorkBookFolder
End If
FileNameVal = Application.GetSaveAsFilename(, "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
Cancel = True
If FileNameVal = "False" Then 'User pressed cancel
Exit Sub
End If
ThisWorkbook.SaveAs Filename:=FileNameVal & ".xlsm", FileFormat:=xlOpenXMLWorkbookMacroEnabled
Application.EnableEvents = True
End If
End Sub
But there are a lot of checks that would need to be done.
I'm not sure how to only default the folder saved only when they open the template, but not change it when they just open an already saved Excel file created by the template (with all the active content, macros, etc.).
Alan EdwardsHi Alan,
store the path\filename in the 1st argument:
FileNameVal = Application.GetSaveAsFilename("C:\*.xlsm", "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
Andreas. -
Hi every one,
I'm using Acrobat Pro 7 for an interactive Project Handbook. Meaning there're are steps to acomplish in order to set up and manag a project according to certain guide lines.
With this handbook I provide an overwiev of the whole document from where
each chapter and
each document that has to be filled for project management
can be reached. To do this I'm using the linking tool of Acrobat.
I couldn't find any post in this forum that looks like my problem so I opened a new post.
Problem description:
As long as I link PDFs together every thing is fine. But as I'm providing Word and Excel template files, thing get messy.
When linking from a PDF to, lets say a *.dotx (Word template), the link works. But in stead of creating a new "Untitled.doc" from the template, it opens the template to be modified.
Use case:
The file "MyTemplate.dotx" is in a sub-directory where the "Overview.pdf" is in. When double clicking in Windows explorer on "MyTemplate.dotx" an new "Untitled.docx" is created.
When linking from "Overview.pdf" to "MyTemplate.dotx" and using that link, "MyTemplate.dotx" is opened the same way as if a right-click and choosing "Open" under Windows explorer was performed.
Workaround:
In order to have an "Untitled.docx" generated from the template I don't link to the template any more. Instead I use a batch file with the following command:
[start "" "directory\directory\MyTemplate.dotx" exit].
This command is written in a "Workaround.bat" file to whitch the Overview.pfd is linked to.
With this solution, the template opens as a new "Untitled.docx" and it's fine.
New Problem:
Using a batch file is detected as a thread on certain PCs. When a link to a *.bat file is used on such a PC, a dialog box "Security warning" shows up saying "Un allowed link with file:/path/folder/..../Workaround.bat" leaving only 2 choices: clicking on Help or on OK and not being able to launch the batch.
Final Question:
How to tell Acrobat to create a new document from a template fil *.dotx" and not open it to edit the template?
I want to thank you for your precious help, I'm really stuck at this point.Here is how to completely remove Office for Mac 2011:
http://support.microsoft.com/kb/2398768 -
Error accessing file template file not found (error code 2)
We have 3 admins that work on the website so we use the Check In/ Check Out feature of DW. We all have DW CS6.
When I update the template I have no problem (I work on a mac). However, if one of the other admins (Windows) tries he gets the following message: Error accessing file template file "C:\filepath\filename.dwt": file not found (error code 2).
I looked at this thread: Re: Dreamweaver Template not updating pages error code 2? but the only solution offered there is to change the template tag from <!-- InstanceBegin... to <!-- TemplateBegin... If this is the solution, how do you do this?
When I go to the url of the template http://www.christophorushouse.com.au/Templates/chrv-main-template.dwt it says it's been (re)moved or renamed, but then I have a feeling you can't view/access a template this way. All pages of the website feed of this template.
Any help would be appreciated.
ThanksWe have 3 admins that work on the website so we use the Check In/ Check Out feature of DW. We all have DW CS6.
When I update the template I have no problem (I work on a mac). However, if one of the other admins (Windows) tries he gets the following message: Error accessing file template file "C:\filepath\filename.dwt": file not found (error code 2).
I looked at this thread: Re: Dreamweaver Template not updating pages error code 2? but the only solution offered there is to change the template tag from <!-- InstanceBegin... to <!-- TemplateBegin... If this is the solution, how do you do this?
When I go to the url of the template http://www.christophorushouse.com.au/Templates/chrv-main-template.dwt it says it's been (re)moved or renamed, but then I have a feeling you can't view/access a template this way. All pages of the website feed of this template.
Any help would be appreciated.
Thanks -
Error while reading template file
Hi,
i have successfully created a template file from a domain(weblogic server 11.3.5).now i have to use this template file to configure a new weblogic server(11.3.5) domain.
i have installed the new instance of weblogic server and successfully ran the WLST in off-line but when i am trying to read that template file its giving following error
com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: com.oracle.cie.domain.ConfigRuntimeException: Required component home not found for component 'oracle.as.im.top' version '11.1.1.2.0'
at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1538)
at com.oracle.cie.domain.script.jython.WLScriptContext.readTemplate(WLScriptContext.java:340)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyInstance.invoke(Unknown Source)
at org.python.pycode._pyx3.readTemplate$1(/tmp/WLSTOfflineIni1669327255348009364.py:17)
at org.python.pycode._pyx3.call_function(/tmp/WLSTOfflineIni1669327255348009364.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at org.python.pycode._pyx16.f$0(<console>:1)
at org.python.pycode._pyx16.call_function(<console>)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Unknown Source)
at org.python.core.Py.exec(Unknown Source)
at org.python.util.PythonInterpreter.exec(Unknown Source)
at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
at weblogic.management.scripting.WLST.main(WLST.java:173)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.WLST.main(WLST.java:29)
Caused by: com.oracle.cie.domain.script.ScriptException: com.oracle.cie.domain.ConfigRuntimeException: Required component home not found for component 'oracle.as.im.top' version '11.1.1.2.0'
at com.oracle.cie.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:465)
at com.oracle.cie.domain.script.jython.WLScriptContext.readTemplate(WLScriptContext.java:332)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyInstance.invoke(Unknown Source)
at org.python.pycode._pyx3.readTemplate$1(/tmp/WLSTOfflineIni1669327255348009364.py:18)
... 20 more
Caused by: com.oracle.cie.domain.ConfigRuntimeException: Required component home not found for component 'oracle.as.im.top' version '11.1.1.2.0'
at com.oracle.cie.domain.DomainTemplate.<init>(DomainTemplate.java:256)
at com.oracle.cie.domain.DomainTemplate.<init>(DomainTemplate.java:182)
at com.oracle.cie.domain.WLSTemplateBuilder.parseTemplate(WLSTemplateBuilder.java:575)
at com.oracle.cie.domain.WLSTemplateBuilder.parseDomainTemplate(WLSTemplateBuilder.java:485)
at com.oracle.cie.domain.WLSTemplateBuilder.buildDomainTemplate(WLSTemplateBuilder.java:1369)
at com.oracle.cie.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:429)
... 30 more
thanksHi,
To resolve the problem do the following:
1. Install Weblogic Server 10.3.3 in a new location.
2. Install the OAM schema and any other required schemas from the RCU 11.1.1.3 into a unique schema name.
3. Install the Identity and Access Management 11.1.1.3 (OAM 11g) software.
4. Configure OAM as described in the Installation Guide:
Oracle Fusion Middleware Installation Guide for Oracle Identity Management 11g Release 1 (11.1.1)
http://download.oracle.com/docs/cd/E14571_01/install.1111/e12002/part2.htm#BABGDJFD
This will help you.
Regards,
Kal -
How do I unlock a file for viewing by other computers
Please be kind, I'm not a computer whiz!! I am trying to share a file between computers (both Mac's). I have gone to the file sharing folder under preferences and checked the boxes I wanted (or thought) would allow me to do this. I can access the other computer but when I click on the file that I want to look at I get the message "unable to access file because you do not have permission to view". Well, that stinks. Is there a way to "unlock" that file for sharing purposes? I need to put that file on my iPad as well as my new MacBook Pro
Pooper: A .cws file is a ClarisWorks or AppleWorks template: a file that, when you double-click it, causes the parent application (C'Wks or A'Wks) to create a new file that is an exact duplicate of the template file, except that it's unlocked and ready to have text entered into it. The template file is locked, not by using the "locked" checkbox, but by virtue of being a template instead of a document. A template is locked by definition, so you won't change it by mistake, and can use it over and over as the basis for many new documents.
Instead of saving all your documents as templates, save them as documents. In AppleWorks or ClarisWorks, this will result in their having .cwk instead of .cws as a filename extension. The necessary options can be found in the "Save" and/or "Save As..." dialog boxes in Appleworks or ClarisWorks — probably in a pull-down file format menu. I don't use those apps myself, so I'm not certain what those dialog boxes look like in them.
The issue of other people not being able to open the files you email to them is unrelated. Anyone who doesn't have AppleWorks or ClarisWorks will be unable to open files that are written in its native formats. If you trashed your copy of AppleWorks/ClarisWorks, you wouldn't be able to open them yourself. Files that you will want to share with people who don't have A'Wks/C'Wks should be saved in a universal file format such as RTF or plain text. -
How to use template files in EasyDMS
Hi everyone,
In certain doc types we are using a template file (like excel or word document), so the user can choose in the "originals" section to create file from a template.
The problem is that on EasyDMS there isn't such option.
How can we use the template files from there too?refer
http://help.sap.com/erp2005_ehp_04/helpdata/en/48/d602b6553b3e49e10000000a421937/content.htm -
Using dotx files opens the template file instead of instantiating a new docx file
When I save Word documents as templates (dotx) in a SharePoint document library I noticed that they always open up as the template file (dotx) and not as a new Word document (docx). I expect that this happens because SharePoint simply opens up
the document "as-is" - disregarding the logic which would normally create a docx document in offline mode. But strangely this works fine when opening the file in explorer view.
Does anyone know if it is possible to use dotx files as intended in SharePoint? Was this behavior introduced when SharePoint 2007 was launched or was it perhaps included with a CU or SP?You can create a central hub containing content types (called the Content Type Hub). Timer jobs run throughout the day to copy content types from the Hub to other site collections. Once the content types have been replicated to your site collection
you would change your library settings to allow management of Content Types (Advanced in Library Settings). Now you can select "Add from Existing content types" (Library settings) and add the content types to your library. When you are
done you can train your users to create new documents from your standard templates by selecting the content type by clicking the tiny triangle under the New Document button.
Reference
About Content Types:
https://support.office.com/en-us/article/Introduction-to-content-types-and-content-type-publishing-e1277a2e-a1e8-4473-9126-91a0647766e5
I did this on an Intranet I setup. When I created a new Project Site (not on Project Server), I added the content types to the document library (e.g. Charter, Plan, Status Reports, Project Document). I then took an additional step and I deleted the default
"Document" content type. and moved "Project Document" to the top of the list. I then set the column "project name" (which I added to the project document content type) default value to the name of the project. This
way when people upload new docs to the library they are "Project Documents" and the Project Name column is populated with the name of the project by default. - I hope this is helpful - Greg
Gregory Frick -
Document-relative Template paths in templated files?
Is it possible to make Dreamweaver use document-relative
paths to parent Templates rather than root-relative? My site
definition is setup so such that the local folder is the root of
the web site. However, on the server the site is actually in a sub
folder, so the real web root is not the same as this web sites
root. So, something like this:
Local root folder = C:\...\Project Name\www2\
(Local templates folder = C:\...\Project
Name\www2\Templates\)
HTTP Address =
http://www.mysite.com/clients/client-site/
(Remote templates folder =
http://www.mysite.com/clients/client-site/Templates/)
The end user will be using Contribute to manage the content
on this site, so I'm using Templates to control some aspects of the
site. My problen is that the path back to the Template is being
written as a root-relative link:
InstanceBegin template="/Templates/navigation-sub.dwt.php"
When I then connect to the site using Contribute and try to
edit a page, I get an error saying that it can't find the template
(which is true because the template is actually in
"/clients/client-site/Templates/navigation-sub.dwt.php" and not
"/Templates/navigation-sub.dwt.php"). I have the Links Relative to
Document option checked in my site definition, but that appears to
only apply to regular links and not paths to Template files.
Murray had mentioned some technotes that addressed this, and
I think I found the ones he was thinking of, but they seemed to
only address regular links and it wasn't clear if the Template
paths were affected by the solution (which was to set the Links
Relative to Document option which I mentioned above).
So is it possible to tell DW to use document relative paths
to its template files? I know you're thinking "Why not just create
the local folder with the client and client-name folders," but this
wouldn't work as the site will eventually be moved to the clients
own website where the site files really will be in the site root.
This is the whole reason for using document relative files in the
first place. Any help would be greatly appreciated.OK, apparently I'm not explaining myself enough here because
you guys keep giving me the same answer to something that I've
already said isn't a viable solution. Let me explain in greater
detail why just updating the local folder structure won't work.
Let's assume that I did do what you suggest. My local folder
could technically stay the same but I'd add two additional
directory levels ('clients' and 'client-site') to match the site
structure on my testing server. I then move all of the existing
files into the lower 'client-site' directory *except* for the
Templates folder because DW likes that to be at the "root" of the
"site". So now assume my local site looks something like this:
C:\...\Project Name\www2\ (DW would consider this the "root"
of the site)
.....clients\
..........client-site\ (i'll refer to this as the client root
for simplicity sake)
...............articles\
....................doc_a.html
...............images\
....................img_a.jpg
...............index.html
.....Templates\
..........client-template.dwt
If DW is writing the Paths back to the Template file using
site-relative paths then file index.html in the client root (i.e.
/clients/client-site/) would have the path back to template
client-template.dwt written as follows:
InstanceBegin template="/Templates/client-template.dwt"
Also assume that img_a.jpg is the client logo that will be
used on all of the pages and so it is in a protected part of the
template. The document-relative path from the template
client-template.dwt to the image would be:
<img src="../clients/client-site/images/img_a.jpg">
Of course since my site is defined to use document-relative
links then this path would resolve to just "../images/img_a.jpg"
for index.html.
OK, so far so good. I upload all of this to my testing
server, give my client a connection key for Contribute and let them
test away. They love it (naturally) and want to move everything to
production. This is where your suggested solution falls apart.
In order for the site to continue to work as-is I would have
to copy the entire directory tree (/client/client-site/etc) to the
clients web site, so what should be www.client-site.com/index.html
becomes www.client-site.com/clients/client-name/index.html. I also
have to copy over the Templates folder, stripping out any other
Templates that might be in there (my own site template for
example). Not only is this cumbersome, but the client hates the
fact that there are all these subdirectories in their URL (as
finicky as clients are) and they think it is unprofessional. My
whole purpose for developing using document relative links is so
that no matter where I plop the site, it will work as intended.
OK, the first fox for this that comes to mind is to take just
the site files (so everything under /clients/client-name/) and plop
that into the root folder on production. All of the existing files
should work fine since they use document-specific links. However,
the client still needs to use Contribute to edit these documents so
I have to copy over the Template folder. I can put that into the
root since all of the paths back to the template are root-relative,
right? Wrong - because all of the links in the template still point
to the files as if they were in '/clients/client-name/', which they
no longer are. So any new files based on the template will contain
broken links, and any updates to the existing files might also
result in broken links.
So then I need to keep two versions of the site? And if I
make a change to the template on the testing site, I then have to
reconcile the changes to the production version? Way too much. And
all of this would be irrelevant if I could just use
document-specific links back to my templates.
Does it make sense now why updating the site structure isn't
as optimal of a solution as you are making it out to be.
quote:
Originally posted by:
Newsgroup User
Create a new site definition for this testing site that uses
the correct
root directory. Then it doesn't matter.... -
Use the command "Properties" in Windows Explorer to unlock the file
I'm getting this error where, when I start Photoshop, I get a popup saying "Cannot load Photoshop because the file is locked or you don't have the needed privileges.. Use the command "Properties" in Windows Explorer to unlock the file". I unlocked it's access to everyone for the 64-bit and the 32-bit version, still doesn't work. The only way to make it work is by going in Program Files>Adobe>Adobe Photoshop CS5 (64-bit) and manually starting it as an administrator.
Everything was working just fine until today. Please help!If this worked before, and you have made no hardware or software changes you might want to reset the preferences.
Start photoshop and IMMEDIATELY hold down the Alt + Ctrl + shift keys. It is a little tricky but keep trying until you get a reset window. -
Unlocking windows files doesn't work
Hi, I went to print some projects yesterday and my usb drive got a virus or two. Usually I would just unlock the files in Leopard and trash them, but I can't unlock the files with Snow Leopard.
Any help?
Thanks,
JacoFirstly, this is a bit long (sorry), but will fix your problem.
I solved this problem using the terminal. In the mac os, you need to move something to the trash before deleting it. In unix, on which the mac os is based, you can delete anything in place using the command "rm", shorthand for remove.
To delete locked files that you can't unlock and delete using the mac os, you will need:
Administrator privileges, including administrator password
A locked file
Extreme care
in addition to the "rm" command, you'll also be using the "sudo" command, which is short for "Super user do". Be very careful with this, as you will not be asked "are you sure?" when using "rm" or "sudo". any changes you make *are irreversible*. Consider yourself warned.
These steps assume that the files you want to delete are on an external drive, as mine were.
1-
open terminal
Macintosh HD>Applications>Utilities>Terminal
you should see something like:
Last login: Wed Oct 14 23:43:36 on ttys000
USERNAMEs-iMac:~ USER$
2-
type "cd /" and hit enter
Last login: Wed Oct 14 23:43:36 on ttys000
USERNAMEs-iMac:~ USER$ cd /
USERNAMEs-iMac:/ USER$
3-
type "cd Volumes" and hit enter. unix is case sensitive, and you'll need to give "Volumes" the capital "V".
Last login: Wed Oct 14 23:43:36 on ttys000
USERNAMEs-iMac:~ USER$ cd /
USERNAMEs-iMac:/ USER$ cd Volumes
USERNAMEs-iMac:/ USER$
4-
type "ls" and hit enter. This will list the contents of "Volumes". In case you haven't worked it out, the "cd" command is short for "change directory" and is used as the command line equivalent of opening a folder in the mac os.
Last login: Wed Oct 14 23:43:36 on ttys000
USERNAMEs-iMac:~ USER$ cd /
USERNAMEs-iMac:/ USER$ cd Volumes
USERNAMEs-iMac:Volumes USER$ ls
USB-DRIVE Macintosh HD
USERNAMEs-iMac:Volumes USER$
Before we move on, we need to take a look at what we have.
this line:
USERNAMEs-iMac:Volumes USER$
not only shows us where we are in the computer, but also shows that the computer is waiting for a command.
USERNAMEs-iMac:Volumes
means that we're in the folder "Volumes" on "USERNAMEs" computer. I assume that your username is not, in fact, USERNAME.
the $ symbol means that the computer is waiting for a command.
this line:
USB-DRIVE Macintosh HD
appeared after we typed "ls", short for "list structure"
in my case, there are 2 further folders inside "Volumes": "USB-DRIVE" and "Macintosh HD"
you may also have a few more, depending on what else is plugged in to your computer.
5-
in order to delete the files, you'll need to navigate to them. my locked files were on my USB drive, which is where i'm assuming yours are too. If not, navigate to them now using "cd".
if you need to go to your user account's home folder, type "cd ~ ". " ~ " is the button immediately below the escape button on your keyboard, and you'll need to hold shift to type it.
if you need to go to the top level of your computer (the same as double clicking "Macintosh HD" in the finder), type "cd /"
if you accidentally open a folder and just need to go up one level, type "cd .."
if you need to see what folders and files are at your current location, use "ls" again
if you can't open a folder, because there is a space character in the name, type "cd 'folder name' ", including the single quote marks, where folder name is the directory you're trying to open.
remember that unix is case sensitive, so match the case exactly for any files that you try to open.
Last login: Wed Oct 14 23:43:36 on ttys000
USERNAMEs-iMac:~ USER$ cd /
USERNAMEs-iMac:/ USER$ cd Volumes
USERNAMEs-iMac:Volumes USER$ ls
USB-DRIVE Macintosh HD
USERNAMEs-iMac:Volumes USER$ cd USB-DRIVE
USERNAMEs-iMac:USB-DRIVE USER$
6-
type "ls" again
Last login: Wed Oct 14 23:43:36 on ttys000
USERNAMEs-iMac:~ USER$ cd /
USERNAMEs-iMac:/ USER$ cd Volumes
USERNAMEs-iMac:Volumes USER$ ls
USB-DRIVE Macintosh HD
USERNAMEs-iMac:Volumes USER$ cd USB-DRIVE
USERNAMEs-iMac:USB-DRIVE USER$ ls
file1
file2
file3
file4
file5
locked file 1
locked2
program 1.app
program2.exe
some file1
some other file1
USERNAMEs-iMac:USB-DRIVE USER$
7-
the files I want to delete are "locked file 1" and "locked2"
if i use the "rm" command on a file, normally, that file will be immediately deleted.
Last login: Wed Oct 14 23:43:36 on ttys000
USERNAMEs-iMac:~ USER$ cd /
USERNAMEs-iMac:/ USER$ cd Volumes
USERNAMEs-iMac:Volumes USER$ ls
USB-DRIVE Macintosh HD
USERNAMEs-iMac:Volumes USER$ cd USB-DRIVE
USERNAMEs-iMac:USB-DRIVE USER$ ls
file1
file2
file3
file4
file5
locked file 1
locked2
program 1.app
program2.exe
some file1
some other file1
USERNAMEs-iMac:USB-DRIVE USER$ rm file1
USERNAMEs-iMac:USB-DRIVE USER$ ls
file2
file3
file4
file5
locked file 1
locked2
program 1.app
program2.exe
some file1
some other file1
USERNAMEs-iMac:USB-DRIVE USER$
if you attempt this on a locked file, however, it will ask you to confirm. (i forget the exact message, as I have deleted all the locked files already...) even if you type "yes" to confirm, the file will not be deleted.
this is where "sudo" comes in. "sudo" should only every be used as a last resort, if you are really 100% completely sure that you want to do whatever it is that you're doing with it. used improperly, "sudo" can destroy your computer. it won't here, with what we're doing, but i'm just trying to get across that it isn't a command to be played around with. (it's all fun and games until someone loses an eye...)
type "sudo rm 'locked file 1'" if the file has a space in its name, or
"sudo rm locked2" if it doesn't. obviously, "locked file 1" or "locked 2" will be different for you. if the file has a file extension, type that too, for example, "sudo rm program2.exe"
[snip]
USERNAMEs-iMac:USB-DRIVE USER$ rm file1
USERNAMEs-iMac:USB-DRIVE USER$ ls
file2
file3
file4
file5
locked file 1
locked2
program 1.app
program2.exe
some file1
some other file1
USERNAMEs-iMac:USB-DRIVE USER$ sudo rm locked2
Password:
The password that is now being asked of you is the Administrator password. If you are not logged in as administrator, you will need to log out and log in as one to do this.
Type your password and hit enter.
You will be asked at this point to confirm deletion of the locked file. Type "yes" and hit enter
if you type "ls" again, you should see that the stubborn file is gone. If you open the folder where it was located using the finder, you should see that it's gone, too.
8-
Repeat the "sudo" command for any other locked files that you need to delete. You will not be asked for your password again, unless you quit Terminal and relaunch it, but you will need to confirm each time.
once you have finished deleting files, you can just quit Terminal; you don't need to type a specific command to do so.
9-
geek "sudo" joke:
http://xkcd.com/149/
Message was edited by: Butterworm -
Creating template file using ireport while generating PDF(jasperreports)
Hi,
I need to create a PDF report with multiple pages.the layout is as follows.
each page has text on the left and bar graph/pie chart on the right along with some more text below and a table below at the end of the page.
and so on for all the other pages................
I have been trying to do this using jasperreports(creating the template file(.jrxml) using ireport)but i have no idea how to create all these pages(the formatting and layout)...any help would be appreciated...
thanks.Hi,
since 10.1.3 does not have templates I am wondering what you were attempting to do? It appears as if the Faces libraries are not available for the project, so you may want to give us a steb-by-step instruction of how to reproduce the error
Frank -
How do you turn off the "Update Template Files" dialog when saving a template in Dreamweaver?
As the title states I'd like to not have to see the "Update Template Files" dialog when saving a template. I'm not sure what its purpose is other than to annoy as it does not seem to do anything -- selecting update, don't update, any combination of files and or hitting escape appears not to make any difference wrt wheter it updates the pages or not (it does every time).
Any help will be appreciated.The "more like this" window gave me the answers. No current ability to turn off. I've submitted a request to add this feature.
-
Unlocking templates created in go live?
I transferred a site that I created in golive to dreamweaver.
I am unable to edit the template pages. I cannot figure out how to
unlock the parts of the template that were locked in golive. I just
need to swap out a couple of images and change a couple of words.
Is there a way to do this?Change the case of your templates folder, as Alan suggests,
and then just
rename this file *.dwt, instead of *.html. Now everything on
the page is
editable.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"bdm1000" <[email protected]> wrote in
message
news:gmsga6$g5v$[email protected]..
> Thanks for your response. Here is a page created from
the template:
> www.discodogdesign.com/identity4.html (back when I was
still using
> golive).
>
> The templates (that were converted from golive) are in
the templates
> folder
> below, but they were converted as html files it appears,
not template
> files? Is
> there a way to unlock the locked parts?
>
> www.discodogdesign.com/templates/ident_cat_temp2.html
>
Maybe you are looking for
-
Is it better to update the ipad with a mac mini vs a windows PC?
I have an iPad 2 which i want to update to iOS 6.1.3 (from 4.3.3). I usually sync it with a mac mini running Snow Leopard 10.6.4 with iTunes 10 which will not allow me to update the iPad as iTunes 11 requires OS X 10.6.8. I am not in a position to up
-
Problem in displaying dates for replacement path with text variable
Hi all, I have to display dates in sequence as descriptions for 15 columns based on the the date entered by the user in Bex Report.I managed to display date as description using text variable with replacement path for single column.I could not able t
-
KOB1 report Partner Cost Center missing
Hi, For a line item correspoding to a Purachse Order, Partner Cost Center is not displayed. Is it normal behaviour. For PO related line items how are the costs captured. What other reports are there in SAP to capture line item costs for maintanance o
-
GETWA_NOT_ASSIGNED in Transaction VA42
Hi all, One of my user have got a runtime error in the transaction VA42 where we have added our customized code.The Main Program is SAPMV45A.I have attached some of the dump details below. <b>Runtime Error GETWA_NOT_ASSIGNED ShrtText Fie
-
How to set up junk mail filtering in mac mail
Is there a new way to set up junk mail filtering? I have been getting an increased amount of junk mail which the filter seems to allow through. Also, when I select emails and mark them as junk, when I delete them, they "reappear" still marked as junk