Prevent user from opening an applescript file

Greetings,
     I have written an Applescript for use by the User to change file permissions on folders or files they get from clients from outside our company.  The permissions of these files denies the User from opening the files and work with them  The script I wrote will change those permissions to Read/Write but also contains Administrator information with regards to Admin Name and Password.   The script runs just fine.
     Where my problem arises is I cannot find a way to prevent a User from using the Applescript application on their workstation to open my script and view the Admin name and Password.  What I need to happen is to have the script run when the User places a file on the icon, but not allow a User to open the script to see the coding.  I'm really new to Applescript and I figure i am missing something.  Thanks in advance for any advice.

Are these items downloaded into the same folder in each user account?
That part is reliably the same or are users involved choosing the save location?
Frankly I'd scrap Applescript - it is a pain for anything involving admin privs & normal users.
Option 1…
Stick a task into roots crontab to chmod/ chown that location every 5 minutes or so!
If you want to be smart about it check if the perms are in a mess before you fix them. A shell script can do this. Obviously you need to check the path to give the correct user the ownership etc.
Option 2…
Set a launchd job to watch a specific folder & run a command when items are added - like folder actions without the crappy Applescript part
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man5/launchd.plist.5.html#//apple_ref/do…
It would need to be a system level job since the user doesn't seem to have enough permission.
If you need to use an application to allow the user to have control an Applescript droplet could move the items to the watched folder, where the launchd job resets the perms. Then the items could be moved elsewhere via the script that runs from the watch job.
It all seems kinda kludgy, but sometimes that is how OS X is!
Perhaps this is outlandish & impractical but so is manually fixing stuff like this every time someone calls
Any thoughts?

Similar Messages

  • Prevent user from download my PDF file on JSP page

    I'm developing a web application using JSP, html, and javascript. I would like to prevent user from download my PDF file and only able to open on browser and read.
    How can i do that?
    Thanks!

    opening and reading involves a download.
    So i dont think you cant prevent that.

  • Corrupt audio file prevents me from opening Logic project file

    Hello,
    I've been running Logic 8 for a couple years off my MacBook and have never encountered any significant problems of file corruption until recently.
    The issue I encountered is this:
    I've been producing a lengthy track in an on-going Logic project file for some time and after completing a recording session I saved and started deleting excess track copies to clean up my arrange window. Upon doing so Logic unexpectedly crashed.
    After attempting to reopen the project file, it started its normal process of loading its respective audio files, but now it hangs on one particular audio file indefinitely (I'll refer to it as 'audio file x' for ease of reference), freezing and crashing Logic as a result. All of this project file's auto backup files are also incapable of being opened without giving me the same result and crashing Logic.
    I have no way of opening this project file and getting at my most recent saved sequence!
    I've tried removing this corrupt 'audio file x' from the project's audio folder and dragging it to the desktop, but this had no effect and I still can't open any recent version of the project file.
    Older saved copies of the current project file do still open though (most likely because they were saved prior to the corruption caused by this suspect 'audio file x.') When opening an earlier iteration of the project, I get a message '1 invalid audio region found' (I assume referring to the corrupt suspect 'audio file x' that I removed to the desktop) but the project file is still able to open.
    I realize I could import the audio files from the most recent version of the crashed file to an older project version and reconstruct things back to the way they were, but it would take me a lot of time and I'm hoping there may be some way to recover the un-openable project file by getting it to stop looking for this corrupted 'audio file x' on startup.
    When I click 'show package contents' of the Logic Project file, I notice two items labeled 'displayState' and 'documentData.' From my troubleshooting I've come to the basic understanding that the 'documentData' file contains all the sequence data and settings for its respective Logic Project file.
    I think the 'document data' of the unopenable project file in question may be corrupt because whenever I replace it with the 'document data' from an earlier Project file version, the file is able to open. This doesn't do me much good though, because it's document data from an earlier iteration of the project and I need to be able to get at the current sequence I had right before my file crashed.
    Is there anyway to open a project file without letting it load its audio files? Or is there anyway I could get inside the 'document data' file to delete the reference/pathway in its audio bin to the corrupt 'audio file x' its hanging on?
    Any insights would be greatly appreciated. I'm hoping there's some way I won't have to repeat a couple days worth of work. Thanks for your help!

    stooby3535 wrote:
    After further troubleshooting I've realized that the suspicious audio file that prevents the project file from opening is actually not corrupted itself. I can still play the audio file in other media software like Quicktime, etc. with no problem.
    This leads me to believe the problem opening the project file lies solely with the corrupted 'documentData' file.
    Does anyone have any ideas about how I could somehow open this project file and delete the reference of the troublesome audio file from the project's audio bin?
    Well... it really sounds like the project itself is corrupted, that's one of the reasons all project files won't load from a certain point on.
    Try this.
    Reboot the Mac.
    Open the Applications folder and boot Logic from it's icon.
    As soon as the Logic Logo/graphic window appears on the screen hold down the control key. You will see a message pop up that says something like "Launch the Core Audio Driver" there will be yes/no choice available... select NO.
    Go to the File menu and selct "open" go find your project file and see if it will open. If it does.. delete the audio file in question... however.. I would also look at any plugins you recently installed and are possibly using in this project...this sounds more like a plugin problem rather than an audio file problem, but that's just a gut feeling.
    Anyway, if it opens delete whatever you suspect and save under a different name.
    Reboot Logic and see if it can load the project.
    pancenter-

  • AIR Preventing me from opening a pdf file

    When I receive pdf files via email or attach one of my own pdf files to an email, I am unable to open the pdf file. I get a message indicating 'Please wait while Adobe AIR setup is being executed', then the bar that says 'processing Adobe AIR'. It reaches 100% and then nothing else happens. The pdf file is not opened. I've tried uninstalling and reinstalling Adobe AIR, and nothing changes. Then I tried uninstalling AIR and not reinstalling it, and all my pdf files still get the same message 'Please wait while Adobe AIR setup is being executed'. When I publish my WordPerfect documents to pdf, I can open the pdf file using Adobe 9.3 because it gives me the option to "open with"; however, pdf's that I receive via email, I'm not given the option of what program to open it with. My only option is to "open". I need to either get rid of the annoying AIR so that all my pdf files open with Adobe 9.3, or get the AIR to work properly. Can anyone help???? Thanks!

    This forum is for AIR Help, not help with the AIR application. AIR is a development tool that allows developers to create applications. One such application being a means of providing the help for software. So it is AIR that is causing your problem, not AIR Help.
    With that said, I happened to see someone who had a bad install of AIR that was causing a different problem, namely every time the PC was booted Explorer opened to the folder with the setup file. In the end I installed it and then uninstalled it. Then did the same with Acrobat and all was well.
    Maybe you can find the AIR setup or you can look in Add / Remove Programs and work from there.
    Beyond that I suggest you ask in the correct forum, either Acrobat Reader or AIR, most likely the first.
    See www.grainge.org for RoboHelp and Authoring tips
    Follow me @petergrainge

  • Prevent user from opening a subreport

    Dear all,
    I have a Crystal Report with one embedded subreport.
    I would like to prevent that the user opens this subreport with a double click.
    But the subreport should not be suppressed.
    Can anyone help?

    That works fine in Crystal Reports, but in a different way iif I publish the report in Infoview.
    Then the report is opened again in the same format as the main report is but with the name of the subreport.
    Is there an option that prevents this behaviour?

  • How do I prevent a user from opening multiple instances on the same computer?

    On the site oldnavyweekly.com there is a .swf that prevents users from opening multiple instances of the site at the same time on the same computer. If you open the site, and try to open it a second time in another window, it won't load. You can't open the site again until the first window is closed. How did they implement this?
    From my analysis it is NOT:
    1. Cookies - The block still takes place if you try opening it in IE and also try opening it in Firefox simultaneously.
    2. Flash Cookies - The block still takes place if I disable flash cookies.
    3. IP Based Block - You are not blocked if you open the site on two separate computers with the same outbound IP address. From my analysis, their server does not assist in the block at all.
    It seems as if their .swf is creating some kind of global system-wide object that can be detected in other instances of the application on the same machine. How did they implement this?
    Thanks!

    you're welcome.
    actually, unless you take an extra step, the first opened swf will close.  if you want the 2nd to close, the initial receiving lc will send a message to sender that causes the sender to close.

  • Prevent user to open window with same session

    Hi all,
    I have a requirement to prevent user from opening a new window of same session, either by right click, middle click or any other method.
    Can anyone tell me how can i use session state to find that new window of same session is opened, and if yes, i can give an alert message that 'Only one window is allowed at a atime for a user'. Thanks alot.
    With Regards,
    Sunil Bhatia
    Oracle APEX

    You can enable the checksum feature in the Application Security attributes to prevent users.That would be closest you can acheive towards your requirement.
    <li>However you try and prevent users from creating a new page, they can always use their browser features to duplicate a page ,and this works even with a checksum in the URL
    For example in firefox, place your cursor in the URL bar and press {CTRL} + {ENTER} , it duplicates a page.
    <li>Now, assuming that they did this, how do you identify which page is valid, For apex either page sents a request only and it doesn't know what happens at the client side. Remember apex session details are stored at the server side only.

  • Prevent Mac users from opening a PDF form in Preview

    When I create an AcroForm, it does not behave the same when someone fills it out in Preview, and when I receive the completed form back from them, some of the information in the form fields is missing.
    Is there a way to prevent Mac users from opening the form in Preview? Or to give them a message that the form needs to be filled out using Reader?

    You can't stop them doing it (except by standing next to their computer with a heavy stick).
    You could consider having a large field on the page warning that the file is not to be used (or whatever), which is hidden using Acrobat JavaScript.
    Be aware that we are now dealing with a very large set of PDF readers.
    Included with computers: Mac OS Preview, Windows Reader.
    Included with browsers: Chrome, Firefox.
    Included with portable devices.
    Anyone who gets a computer these days in fact gets a PDF viewer which is bad with forms. You need to give them a compelling reason to download extra software. (Or, frankly, give up on PDF forms. I think their day has passed for a general audience who could fill in a browser form).

  • How can I prevent Word 2013  from opening a PDF file to edit it?

    As per the title - I create training manuals in MS Word and save as PDF for distribution to clients.
    How cna I prevent them from opening and editing them with Word 2013?

    You can restrict editing and printing of a PDF document by setting permissions when you create the initial PDF. This can be done as:
    Open Word document to convert.
    Go to Acrobat tab on Word ribbon -> Select Preferences button.
    On Security tab of the Preferences dialog, tick mark the check box for "Restrict editing and printing of the document. A password will be required in order to change these permission settings."
    Specify a password in "Change Permissions Password" tex box.
    Click OK.
    Input the password again in the confirmation dialog.
    Go to "Create PDF" button.
    The PDF thus created, will have editing restricted. And Word 2013 will not be able to open it.
    Thanks.

  • Sandboxd prevents preview from opening images

    The sanboxd is preventing me from opening some, but not all, images with preview.
    The system.log shows:
    Dec 16 23:36:17 computer_name Preview[7570]: PVImageContainer initWithURL:file://localhost/Users/username/Library/Containers/com.apple.Previe w/Data/file.jpg failed, error = Error Domain=NSCocoaErrorDomain Code=257 "The file âfile.jpgât be opened because you donât have permission to view it." UserInfo=0x104ef6960 {NSFilePath=/Users/username/Library/Containers/com.apple.Preview/Data/file.jpg, NSUnderlyingError=0x104e71ec0 "The operation couldnât be completed. Operation not permitted"}
    Dec 16 23:36:17 computer_name sandboxd[10125] ([7570]): Preview(7570) deny file-issue-extension /Users/username/file.jpg
    Dec 16 23:36:17 computer_name Preview[7570]: Bookmark failed to issue extension for item /Users/username/Library/Containers/com.apple.Preview/Data/file.jpg (depth=1): Operation not permitted
    I have recently migrated from a macbook with 10.6 to a macbook air with 10.7. I used migration assistant via wifi.
    The problem arises both on newly downloaded images as well as images that were transferred via migration assistant.
    The file permission is 755, and File->View permissions looks perfectly fine.
    Any idea what is causing this and how to I prevent this from happening again?

    Hi Linc,
    thank you for the suggestion, but unfortunately it did not help. For the top directory, and all subsequent directories, I have read&write (755) permissions, as well as for the files that i can not open.
    This appears to happen randomly. Some directories are affected, some are not, and it appears to happen to all files in certain directories.
    Interestingly, if I control-click and select e.g. Explorer, I can view the image. Also, if I copy the file to my Desktop, I can also view the image. So it only happens to Preview in certain directories.

  • Outlook Integration add in prevents outlook from opening

    Hi All,
    When the outlook integration executable (BO_SyncExt.exe) is running it prevents outlook from opening. Outlook just sits there saying loading user profile all the time. When the process is killed via task manager outlook opens. The issue seems to be intermittent, we've tried the usual uninstalling, re-installing, rebuilding the machine etc. it didn't work.
    The problem doesn't happen on machines using office 2003 or 2007, only on Office 2010 (32 bit).
    SAP version 8.8 PL20.
    Any ideas what this might be?
    Many Thanks,
    Matt

    Hi Jimmy,
    it is 32-bit MS Office, I have had this issue both on 8.82 PL05 (Windows 7 32-bit) and PL07 (Win2008 R2 server 64-bit).
    The Outlook Integration log shows some strange entries without error description:
    2012-07-23 15:24:30  E  CBO_AddIn::OnConnection  ERROR: **************************************************************************
    2012-07-23 16:36:01  E  CBO_AddIn::OnConnection  ERROR: **************************************************************************
    2012-07-23 16:38:33  E  CBO_GUIControl::ReleaseGUIControl  ERROR: Exception in closing the Outlook...
    2012-07-23 16:39:13  E  CBO_AddIn::OnDisconnection  ERROR: ############################################################################
    2012-07-23 18:23:27  E  CBO_AddIn::OnConnection  ERROR: **************************************************************************
    After this error (Exception in closing the Outlook...) I assume that the Outlook.exe hangs, therefore when opening Excel, I get an error message like 'Failed to open log file', so probably the hung Outlook.exe locks the log file. Of course opening Outlook isn't possible in that status.
    After closing the process Outlook.exe, I can start Outlook again and Excel doesn't throw any error message. Nevertheless I tried also to run BO_SyncExt.exe in compatibility mode, I will observe this issue now.
    Thanks
    Sebastian

  • Something called "television fanatic plugin" which seems to have come with the Safari upgrade is preventing me from opening Safari.  Help

    Something called "television fanatic plugin" which seems to have come with the upgrade to Safari 5.1 is preventing me from opening Safari.  I cannot find it on my computer.  What do I have to do to eliminate it and be able to open Safari?

    If the software doesn't have an uninstall feature, quit Safari and try manually removing the third-party add-on files. These files are usually installed in one or more of the following locations:
    /Library/Internet Plug-Ins/
    /Library/Input Methods/
    /Library/InputManagers/
    /Library/ScriptingAdditions
    ~/Library/Internet Plug-Ins/
    ~/Library/Input Methods/
    ~/Library/InputManagers/
    ~/Library/ScriptingAdditions
    The first four locations listed are in the root-level Library on your hard disk, not the user-level Library in your Home folder.The tilde (~) represents your Home folder.
    To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library.

  • GPO to prevent users from accessing the root folder of their profile doesn't work

    Hi,
    Here's the scenario:
    In a Windows 2012 RDS I created two groups called RemoteApp users and remote desktop users.
    These groups are defined in the collection for the corresponding RD Session hosts.
    These groups are not included in any other group, but they are located under an OU -called  Remote Users.
    In the domain controller I have created a GPO named "Restrict access to root drive"  which is linked to the Remote Users OU.
    The GPO I selected is - "Prevent users from adding files to the root of their users files folder"
    This doesn't seem to work. I have waited more than a few hours to allow the 90 minutes update, plus used the gpupdate /force
    but when a user clicks on the RemoteApp (Excel in this example) then access to the C: drive (which is the root folder of the user's profile) is enabled, and the user can create folders and save files under C:.
    I tried to run gpresult for the specific user but the GPO I created wasn't mentioned.
    I thought this would be a straight forward mechanism, but somehow it looks like something is missing.
    I have read about loopback and expanding, but not sure if this is what needs to be done, and if yes - I'd appreciate if I can get  step by step instructions. Everything I found so far was VERY vague.
    Thanks !
    One more detail that may be relevant - the DC is a Windows Server 2012, and the session host is a Windows 2012 R2.

    > These groups are not included in any other group, but they are located
    > under an OU -called  Remote Users.
    >
    > In the domain controller I have created a GPO named "Restrict access to
    > root drive"  which is linked to the Remote Users OU.
    >
    The USER accounts need to be in the OU your GPO is linked to. Despite
    their name, GPOs do NOT apply to groups, but to users (and computers).
    Groups only provide an additional layer of filtering...
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • How To Prevent ATV From Deleting Previously Synced Files?

    Hi,
    Due to the limited size of my laptop hard drive I have to move the downloaded movies and music video from iTunes to an external USB hard drive after syncing them with the ATV.
    I double click in iTunes the moved file to relocate it again on the external drive so it won't appear as a missing or deleted file.
    But just today, iTunes started to sync a new downloaded movie and erased all of the files that I removed from the laptop hard drive.
    So who can I prevent ATV from deleting those relocated files?
    Thanks.

    if itunes opens up and the external drive is not attached, it is going to flag any file it references on the external drive as unavailable. if the file is not made available and located by itunes before the apple tv syncs with itunes, then the file will also be made unavailable to the apple tv (correct me if i've got this wrong, but i'm fairly certain this is how it goes).
    itunes and apple tv utilize a sync relationship, and in any device/host sync relationship one or the other has to win during a database conflict.
    iTunes always wins if the file originates from itunes (i say this because when you purchase from the ATV, the ATV will push the file to iTunes that first time, but afterward if you remove it from iTunes it will be removed from the Apple TV. This is a little bit off subject but it is relevant as it is the only time the Apple TV gets to win). Otherwise, if it's not in iTunes, it won't be on the apple tv (when the two sync with each other).
    if you want to prevent the ATV from deleting the relocated files, make sure they are available in itunes when the ATV syncs with itunes.
    let us know if you make any observations where the files are available and this continues to happen.

  • Prevent user from changing calendar permission

    Hi team,
    How to prevent users from changing calendar permission in outlook. When user open calendar option in Outlook he should either he should able to view the calendar sharing tab or he should not able to make modification in calendar permission by assigning permission
    to others.

    Hi,
    Agree with Andy. Exchange has no built-in feature to prevent mailbox owner to modify their calendar permissions. Since they are owners, they can set their calendar permissions.
    Thanks for your understanding.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

Maybe you are looking for

  • Photo cutlines / photo captions

    Greetings. I discovered an easy css technique for laying out pages with photos and captions -- cutlines in newspaper lingo: http://max.limpag.com/2006/10/15/better-photo-presentation-in-your-website-in-2-easy-steps / I didn't see captions or cutlines

  • ITunes 7 and downloaded video?

    Before upgrading I had downloaded 2 episodes of a tv show from the itunes store which played beautifully. When I went to buy the latest episode, it prompted me to upgrade, and reluctantly I agreed. I downloaded the show I wanted on the new version, a

  • Change date format from DD.MM.YYYY to DD.MM in query

    Hi, In one partical query/web application we would like to change the display format of 0CALDAY from 01.01.2010 to 01.01 (without the year) because the data is in the columns and the analysis grid therefore is too wide. Changing this via SU01 is not

  • Where can i get a comprehensive guide for coding html 5 plugins

    'm starting to get fustrated cause i cant find any good documentation on how to create HTML 5 plug ins  for just a few videos starting me off. im using eclipse and the extension builder.  but i need to learn how to program things like import video, c

  • I forgot my password iphone 5 What I am doing, please help

    I forgot my password iphone 5 What I am doing, please help