Again: Can't make \var, \tmp and \etc invisible

hello together,
there is a hint on how to make "\var, \tmp and \etc invisibles" invisible in http://discussions.apple.com/thread.jspa?messageID=676830

Hi Martin,
   I can't help a lot; my stupid Script Editor and AppleScript have also changed. AppleScript just seems to get flakier and it's more than I want deal with much. However, I'll tell you what I found out, even though it's the opposite of a solution.
   My Script Editor won't let me save a POSIX file reference either. I can tell you that you can change (file "MyHDName:private:var") to (folder "MyHDName:private:var") and you won't get the error. Of course that's not what you want since it's the symbolic link and not the directory to which it points whose visibility you want to change. I now also get the same error with the command that you posted but the following produces no error for me:
tell application "System Events" to set the visible of (POSIX file "/var" as alias) to false
Of course you can't save it but you can run it. However, you can save it as a shell script that uses the osascript command:
osascript -e 'tell application "System Events" to set the visible of (Posix file "/var" as alias) to false'
   However, this is ultimately no help either because you don't have privileges as a regular user to change the properties of this symlink. Since it's not a "do shell script" command, you can't invoke administrator privileges as far as I know. You can't change the ownership or permissions of a symlink from the command line so the only thing of which I can think is to enable the root user and login as root and run the command. It seems that in order to make AppleScript secure, Apple has made it almost useless as an administrative tool. Hopefully someone more knowledgeable and less frustrated with AppleScript will know how to get administrator privileges.
Gary
~~~~
   If all the seas were ink,
   And all the reeds were pens,
   And all the skies were parchment,
   And all the men could write,
   These would not suffice
   To write down all the red tape
   Of this Government.

Similar Messages

  • System Imager back to showing var, tmp, and etc

    Anyone notice that after the 10.4.8 update, that var, tmp, and etc are showing up on Netinstall images? This used to be a problem up to 10.4.3, but it appears to be back.
    Anyone else having this problem?

    Hi Martin,
       I can't help a lot; my stupid Script Editor and AppleScript have also changed. AppleScript just seems to get flakier and it's more than I want deal with much. However, I'll tell you what I found out, even though it's the opposite of a solution.
       My Script Editor won't let me save a POSIX file reference either. I can tell you that you can change (file "MyHDName:private:var") to (folder "MyHDName:private:var") and you won't get the error. Of course that's not what you want since it's the symbolic link and not the directory to which it points whose visibility you want to change. I now also get the same error with the command that you posted but the following produces no error for me:
    tell application "System Events" to set the visible of (POSIX file "/var" as alias) to false
    Of course you can't save it but you can run it. However, you can save it as a shell script that uses the osascript command:
    osascript -e 'tell application "System Events" to set the visible of (Posix file "/var" as alias) to false'
       However, this is ultimately no help either because you don't have privileges as a regular user to change the properties of this symlink. Since it's not a "do shell script" command, you can't invoke administrator privileges as far as I know. You can't change the ownership or permissions of a symlink from the command line so the only thing of which I can think is to enable the root user and login as root and run the command. It seems that in order to make AppleScript secure, Apple has made it almost useless as an administrative tool. Hopefully someone more knowledgeable and less frustrated with AppleScript will know how to get administrator privileges.
    Gary
    ~~~~
       If all the seas were ink,
       And all the reeds were pens,
       And all the skies were parchment,
       And all the men could write,
       These would not suffice
       To write down all the red tape
       Of this Government.

  • Can you make a folder and it's contents temporarily "invisible"---sort of?

    Can I make a folder and it's contents, temporarily invisible? I don't mean I don't want to see it. I mean I want to make it such that if an automated process was scanning my computer, it temporarily wouldn't see that folder and it's contents.
    For instance, let's say I have a folder on an external firewire drive containing video files. And I'm going to run a batch process or automation that says: "Look at everything on that external drive and move it to another designated location"...but I don't want it to move one folder. And I have several folders on the external drive and I need to keep making some of the folders "visible" to the process or "invisible".
    I know I can physically move the individual folders to another location temporarily, run the process, and then copy them back...but I'm trying to determine if there is anything built into OSX 10.6 that
    lets you identify a folder and temporarily make it and it's contents "invisible" in the sense that I described above.
    To be clear, I don't need the folder to actually disappear...I just need it to be "jumped over" or ignored by any batch processes that would be scanning the external drive, and after I run the process, I want to make it "visible" again.
    Thanks in advance for any input.

    brvideo wrote:
    One question about this....I notice that there are three READ/WRITE options:
    One for my particular user name, one for STAFF and one for EVERYONE.
    Do I need to change all three, or just EVERYONE to WRITE.
    You normally wouldn't want to change the rights to your name in a situation like this. What you'd want is to have the other app logon to your computer with a different username, (you have to create the additional user in System Preferences,) then change the privileges for that username. This would eliminate the need for you to have to change the settings all the time.
    In addition, if you make a mistake, you could prevent any access by your username, which means you'd have to logon as some other administrative user in order to fix your username's privileges. This is why I said I wouldn't recommend this as a first choice.
    And are there any keyboard shortcuts for this?
    No, but I imagine you could create an Applescript to do this. But as I said above, if you have the process use a different username, then set the appropriate privileges for that username, you wouldn't need to change the rights all the time. Just set them once the first time.

  • How can I make the rolumn and row headers appear on the printed sheet?

    I am working in Numbers'09. I want to print out my chart with the column letters and row numbers showing.
    How can I make the rolumn and row headers appear on the printed sheet?

    g,
    Those annotations are called "Labels", and they are only visible during editing when a cell selection is made within the table. If you need to have the labels on your final output, you can create labels in Text Boxes and position them adjacent to the table.
    Jerry

  • Can i make a video and use an external mixer for the sound?

    can i make a video and use an external mixer for the sound with my ipod touch?

    You need a special plug to use the iPod's mic in for the headphone jack. If you compare a headphone plug for a set that includes a mic and one that does not you can see that there is a difference.

  • Can we make advance payments and issue a new PO for undelivered goods?

    Hi Experts,
    Can we make advance payments and issue a new PO for undelivered goods?
    Regards,
    R

    Hi Rounak,
    Yes, you can create a standalone AP Down Payment Invoice and adjust  it against the invoice you create later or you can create a payment on account outgoing payment and then reconcile it with the invoice in the ougoing payment screen.
    Regards,
    Rakesh N

  • Can i make the setting and keyboard background black ? , because i have vision problem and the white color is too bright and cause pain and headache for me . thanks

    can i make the setting and keyboard background black ? , because i have vision problem and the white color is too bright and cause pain and headache for me . thanks

    Drmikekuna wrote:
    ... Sony AVCHD .. Canon SD ... Logitech .. Flip Mino HD. ..
    .. Certainly not the best idea for a professional but just fine for a guy who likes to edit for fun.
    that's were the fun stops on a MacOs-based system ..
    FC/e supports only a few 'standards': DV (as from miniDV cams), HDV (from miniDV devices), AVCHD (from most devices) and with a little trick, described on my website AVCHD-light (720p, as from many compact-stills) ..
    done.
    some Flips are supported by iMovie, which you can abuse as a converter tool.
    but 'non video standard' (=read 'video' as 'in TV') formats, resolutions and codecs ...
    a) manual conversion = less convenient
    b) loss of 'quality', e.g. when you blow-up tiny 480x320/15fps into video..
    FC/e is FC/pros lil' brother.. meant for a more.. adult workflow..
    if you like to wrestle with multi-formats, stay with Windows/Magix/..
    Windows=options, with a chance of getting lost
    MacOs=convenience, with a chance of getting restricted

  • Have a real problem i just can't make a reservation and this is the only way to contact apple . It seams to keep going to the american site .

    have a real problem i just can't make a reservation and this is the only way to contact apple . It seams to keep going to the american site .

    Apple world-wide support numbers are found at: http://support.apple.com/kb/HE57
    If this is regarding your information line that says a stolen iPhone, Apple can do nothing to help you.  You must track the iPhone yourself using iCloud and must have turned on Settings > iCloud > Find My Phone before it was stolen.  If that was not done, there is no way to track the iPhone.
    Report the theft to the police and the cell service provider and ask if they can blacklist the iPhone so it cannot be used.  Change all passwords associated with acconts on the iPhone.

  • HT1430 my phone seems to be in some kind of tutorial mode and is talking to me.  I can't make it stop and don't know how I got there.

    My iphone seems to be in a tutorial mode and is talking to me.  I can't make it stop and I can't use it without tapping each key twice.  How do I get back to regular user mode?

    It sounds like you have VoiceOver on.
    This article tells you how to turn it off: http://support.apple.com/kb/HT3577

  • IWeb - Can you make a blog? Can you make a title and let people respond?

    Can you make a title and let people respond?
    For Example:
    'Do you like my new Book?'
    Comment:-
    ???

    Yes. You can add forms to you page which send you emails with the information the visitor put in the form. There are two types, one that you create with Form Action Code that you create and put in an html snippet, Form Action comment form, and more sophisticated forms that are created at a 3rd party site and embedded into a page with an HTML snippet and iFrame code as in this demo page: Embedding Forms & Encoding Email Addresses. With the second method you can set the form to any color combination you'd like. Another example of the Wufoo type is at the bottom of this demo page: QT Movie w/o Quicktime.
    OT

  • How can I make photos Black and White?

    I took a few pics using photo booth on my mac. How can I make them black and white after the picture was already taken? Thanks! (I have the most updated OS X)

    Go into iPhoto's edit mode and click on the Effects button at the top.  Then select the B/W option in those that are listed.
    OT

  • Hello, my Macbook now getting slow, how can I make it fast and fix it?

    How to make my Macbook fast and kill the risks?

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with visits to:  OS X Maintenance - MacAttorney;
                                      The X Lab: The X-FAQs;
                                      The Safe Mac » Mac Performance Guide;
                                      The Safe Mac » The myth of the dirty Mac;
                                      Mac maintenance Quick Assist.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion/Mountain Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Repair the Hard Drive - Lion/Mountain Lion
    Boot from your Lion Recovery HD. When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    Suggestions for OS X Maintenance
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
         1. Carbon Copy Cloner
         2. Data Backup
         3. Deja Vu
         4. SuperDuper!
         5. SyncTwoFolders
         6. Synk Pro
         7. Synk Standard
         8. Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time, then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • When I print a webpage from FF how can I make the text and images bigger?

    I am trying to print an eticket for a flight. The text on the schedule comes out too small and the UPC symbol's black lines look ganged together. I know I can view it zoomed up, but how do I make the text and images stay zoomed so they will print out that way?

    I upgraded but the problem remains. At least with Firefox I do have the option to print a selection even if it mangles the top and bottom lines. With Safari or Chrome I have no option to print a selection. At the moment the only way to get a complete copy of the selection is to copy to openoffice etc and print from there.

  • Hello, im unable to makean icloud account on my iphone, because whenever i make an account a messege appears that this device has enough account so you can not make new account, and the problem is that i dont konw about the perevious account, so what shou

    hello, im unable to make an icloud account on my iphone, because whenever i make an account, a messege appears that this device has enough accounts so you can not make a new one, so the problem is that i dont konw about the perevious accounts, what should i do to delete pervious accounts and create a new one?

    The problem is that there is a limit for creating new iCloud accounts from a device and if the previous owner already created three accounts with this iPhone you bought from him, then you would have to use another device in order to create a new one.

  • How can i make custom login  and priviliges pages  depend on database ?

        Hi all,
       how can i make custom login page and custom security pages depend on oracle database tables.

    User, please tell us your Jdev version!
    Have you used the search field in the forum?
    This had been asked a couple of times.
    http://biemond.blogspot.in/2008/12/using-database-tables-as-authentication.html and
    http://biemond.blogspot.in/2008/12/using-weblogic-provider-as.html
    Timo

Maybe you are looking for