Works, just one problem, make disk images non read only

I have a script that enables me to drop a file onto it and will ask for a text. It will copy the file and the text inside a new disk image.
However the created is read only, i would prefer it if i could edit it's contents.
The code is given below:
global variable1, selecto, diskName, tempfolder, thepathp, xx, pathp
on open {}
my openp()
end open
on openp()
set thepathp to path to desktop
set pathp to POSIX path of (path to desktop folder) as string
set variable1 to ""
tell application "Finder"
set selecto to selection as alias
set infor to info for selecto
set diskName to name of infor
set diskname1 to diskName as text
set john to count character of diskname1
set xx to characters -john through -5 of diskname1 as string
set tempfolder to make new folder at desktop with properties {name:xx}
set thepathp to thepathp & xx & ":" as string
my serialnumber()
duplicate selecto to tempfolder
my makeimage()
delete tempfolder
end tell
end openp
on serialnumber()
tell me to activate
display dialog "Enter the Serial Number:" default answer "" buttons {"Cancel", "Ok"} default button "Ok"
copy the result as list to {the log_message, the button_pressed}
if the button_pressed is not "Cancel" then
set fName2 to xx & ".txt"
set myFile to open for access file ((thepathp as string) & fName2) with write permission
write log_message & return to myFile starting at eof
close access myFile
end if
end serialnumber
on makeimage()
set selecto to thepathp
set pathp to quoted form of (pathp & xx & "s" & ".dmg")
set pselecto to quoted form of POSIX path of selecto as string
set variable1 to "hdiutil create -srcfolder " & pselecto & " " & pathp
do shell script variable1
end makeimage
Merry Christmas and happy new year.

Hi Richard!
Merry Christmas and Happy New Year to you too!
I don't know how much I can help but maybe you need to make a disk image first then convert it to get your results instead of creating the disk image in one step? In the "attach" function you have the possibility to select read/write. And interesting comments "about overriding the decision to make read only." (See man hdiutil under attach)
But this is just a thought...for what it's worth?
Reg

Similar Messages

  • Version doesn't work on external password protected disk image

    Version doesn't work on external password protected disk image.
    Any ideas?

    Hi
    Did you assign the external monitor as a primary display in the graphic properties?
    I think you did it due to the fact that the Toshiba boot display appears on the external monitor.
    But just moment please. The Tecra M7 was delivered with the Win XP Pro tablet edition and not with Vista.
    Did you install it at you own hand?
    I presume everything has worked running Win XP
    Maybe you should try remove the graphic driver from the Vista system and use one from the 3rd site like www.laptopvideo2go.com

  • Just One Problem - The Application Can't Be Found

    I've successfully moved from a Mac Pro (2,1) to a Mac Mini (6,2), running OS 10.9.5 and iTunes 12.0.1.26. There were several glitches during the move, but I finally associated my iTunes folder, now on an external HD, with the application using the option key during launch method. Everything works, iPhones, iPads, iPods all sync properly, all the playlists are there and play all songs, the App Store and iTunes Store function normally using my single Apple ID.
    Just one problem.
    When I try to play content from within the iTunes Music [Media] folder, either by double-clicking on a track or by control-click "Open With", I get an error message "The Application Can't be Found".
    My iTunes Library goes back to iTunes 3 and contains over 350 GB media. This new behavior is worrying, because I don't understand why moving the iTunes Folder should have caused this. Any ideas will be appreciated.

    Thanks for replying.
    Yes, from within the iTunes app all behaviors appear normal. I should test if tracks or other media that are not inside the iTunes Library respond the same way.

  • Exception: non-read-only mapping defined for the primary key field

    Hello.
    I'm new to Oracle and I created Java EE Web Project.
    And I created entities from tableA, tableB, tableC from my database.
    tableA has foreign key to tableB and has unidirectional Many-to-One relationship. tableC has two primary keys and one of these is foreign key to primary key in tableA. tableC also has unidirection Many-to-One relationship to tableA.
    Then I created session bean and data control from it, in design window, created read-only table from tableA.
    And I selected columns in tableA and also in tableB.
    I ran the application and saw the following exception in log window.
    Local Exception Stack:
    Exception [EclipseLink-46] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: There should be one non-read-only mapping defined for the primary key field [tableC.tableA_ID].
    Descriptor: RelationalDescriptor(mypack.tableC --> [DatabaseTable(tableC)])
    tableA_ID is a primary key in tableA.
    How can I solve this error?
    Please help me.
    Edited by: 900471 on 2011. 12. 3 오전 5:32
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:34

    There are not enough details to be sure since you have not provided the mappings. From just the error, it looks like you are using the tableC.tableA_ID field as the foreign key in the ManyToOne relationship to A, but have marked it as insertable=false, writeable=false, meaning that it cannot be updated or used for inserts.
    Either make it writable (set the settings to true), or add another basic mapping/attribute in the entity for TableC that maps to the field which you can use to set when you insert a new tableC entity. A simple example is available at
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/2.0/DerivedIdentifiers
    Best Regards,
    Chris

  • Make a volume mount read-only

    Rather than dig for my Mac OS X Server DVD, I find it easier to clone the disc onto a small partition on a hard drive.
    However, the volume always mounts read-write, and I always get warnings about low disk space because of it. (I made the partition as small as possible.) Plus, I don't want to have anything mess with my Mac OS X Server "DVD".
    I noticed that Mac OS X doesn't use fstab for mounting volumes… is there a way to make a disc mount read-only all of the time? (chmod -R a-w * doesn't cut it for me.)

    I don't mean having it mount read-only when booting from it. I mean, while the server is running normally (not booted from the "disc").
    For peace of mind, I'd like to have my "disc" always be read-only, just to make sure that it isn't modified unless I explicitly allow it.
    On Linux, I could add "ro" to the mount options. Since Mac OS X doesn't use fstab, is there some plist that determines how volumes are mounted? I'd rather not edit the /etc/rc.* files unless absolutely necessary.

  • How to make a column as read only for update integrator.

    Hi All,
    i came across one issue while creating integrator.
    for update integrator i have column rowid.rowid is a parameter. by using this(rowid) i'am updating.i want to make rowid column as read only .
    if i enable read only for rowid,then it is passing null as parameter and inserting new row instead of updating the row.
    If any one came across this problem you can help me in fixing this issue.

    Hi Sanket,
    Thanks for reply.
    i have created a dummy column and passed the value of the orginal column values to dummy cloumn. and hided the orginal column.
    in this process i have come across same issue. it is not passing the value as parameter and instead of updating the row it is inserting an new row.
    Any alternate for this scenario.
    Thanks in advance.

  • How to make a schema really READ ONLY

    Our legacy database is on 11.2.0.1/Redhat. Last week, one developer by accident changed the legacy schema by executing drop/creat/alter table commands. This causes big problem. Now we want to make the legacy schema absolutely read only. Thus nobody can change the schemas object and data.
    There were posts talked about make the tablespace toe read only. That stopped inserting/deleting but one can still change the schema objecs with create, drop and alter, e.g.11:31:41 SQL> create table DUMMY(dummy int);
    Table created.
    11:32:06 SQL> alter table dummy add ( address varchar(20));
    Table altered.
    11:24:14 SQL> drop table DUMMY ;
    Table dropped.How can I stop this type of changes to the schema?

    Revoked most privileges from user LCCH (this is the one I want its schema READ ONLY), only leftselect distinct privilege,admin_option from (
    select r.role,user,r.privilege,r.admin_option from role_sys_PRIVS r
    union
    select 'sys',p.* from user_sys_PRIVS p order by 1,2,3
    PRIVILEGE                                ADM
    CREATE SESSION                           NO
    SELECT ANY DICTIONARY                    NO
    SELECT ANY TABLE                         NONow user LCCH can still create table in its own schema13:08:49 SQL> show user
    USER is "LCCH"
    13:08:56 SQL> create table lcch.DUMMY(dummy int);
    Table created.
    13:09:33 SQL> drop table dummy purge;
    Table dropped.I double checked the privileges granted and confirm that schema has not role granted, no object privileges granted and only the above 3 system privileges granted.

  • How i can make text item as read only

    hi
    im trying to make a text item as read only so no one can write on it i tried to make it as display item but i neeed also to call lov when i double click on the text item in display item case u can not double click
    so please how i can make text item as read only
    and another thing
    how i can change an item properties by code i mean when i click in one button the text item become visibile how i can change its property by code
    thank u

    You can set a text item's property to be non-updateable
    You can change this programmatically with set_item_property()
    :)

  • How to make a cell/column read only

    HI All,
    Is there any way to make a specific cell read only with in a specific data form?
    Similarly is there any way to make whole column read only inside a specific data form?
    I don't want to make changes in my dimension member (e.g Dynamic Calc), i want to make these changes at data form level because, these cell/column are read only at one form but on some other data form they are editable/enterable

    If you want to make a column read only then have a look at asymettric columns in the planning admin doc, if you use them then you can make one of the columns read only.
    If you want a make one cell read only then one method could be to use javascript, you could add an extra member which is dynamic calc and point to the original member with a formula but it doesn't sound like you want to do that.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Best way to make all the items read-only in many pages for a resposibility?

    Hi,
    We have the following requirement:
    We need to make all the fields read-only in 5 standard self-service pages for a particular responsibility. One way is to personalize these pages at responsibility level. Is there any other quick/better way to do it?
    Highly appreciate your suggestions on this.
    thanks,
    Hem

    Hem,
    Personalisation is easiest and fastest way of doing this. The same requirement can be acheieved by extensions of CO by setting the bean properties rr by SPEL binding by extending VO.
    But when I can get something done without coding at all that approach is best, I am sure u agree :)!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to make few DFF fields read only in Forms

    Hello.....
    I am having an Issue in forms customization through custom.pll
    I need to make few DFF fields read only in HRMS enter and maintain form through custom.pll
    I tried with fnd_descr_flex.update_definition but in vain
    So please help me how to rectify this issue.
    Edited by: user.nazeer25 on Jul 9, 2010 5:27 AM

    Hello,
    Wrong forum.
    Ask this kind of question in the E-Business Suite forum ;-)
    Francois

  • How to make specific cell(s) read-only in a data-grid

    Hi there!
    Is there a way to make an specific cell read-only in a data-grid?
    Best regards,
    Ciro

    Hi !
    After some months... here is the solution:
    Private WithEvents _gridTaste As DataGrid
    Private Sub MyScreen_Created()
    AddHandler FindControl("GridTaste").ControlAvailable,
    Sub(s, e)
    _gridTaste = CType(e.Control, DataGrid)
    End Sub
    End Sub
    Private Sub _gridTaste_BeginningEdit(sender As Object, e As DataGridBeginningEditEventArgs) Handles _gridTaste.BeginningEdit
    ' I want do set the cell (2,0) as read only:
    If e.Row.GetIndex = 2 AndAlso e.Column.DisplayIndex = 0 Then
    e.Cancel = True
    End If
    End Sub
    I hope this post help you too!
    Best regards,
    Ciro

  • How to make a DFF in read only mode

    Hi All
    There is a requirement to male an descriptive flexfield (in Puchasing PO Headers) i read only mode for all the users.
    So that user must not select any values, Is any way to do this. Any workaround is possible ?
    Regards

    Hi;
    Please follow below and see its helpful:
    [Solved] How to make a DFF segment 'Read-Only' using Form Personalization?
    Also check:
    http://download-west.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/ogenff03.htm
    Regard
    Helios

  • How to make a DFF as Read only field

    How to make a DFF as Read only field

    Hi,
    You can add the read only token ($RO$) to any of the segments in the list. For example:
    segmentlist = "Context1|Segment1($RO$)|Segment2..."
    Thanks,
    Kumar

  • How to make a checkbox as read-only ?

    Hi,
      My current requirement is to make a checkbox as read-only. Previously, the checkbox has been declared as
    PARAMETERS: cb_gr AS CHECKBOX DEFAULT 'X'.
    Now am required to make this as read-only. There are <b>no screens</b> defined in the report containing this checkbox and so am not knowing where to give the statement
    LOOP AT SCREEN.
    **Make the checkbox as disabled**
    ENDSCREEN.
    It is known that this statement has to be given in the PBO of a screen. So kindly guide me at the earliest on how to resolve this issue.

    Hi aISWARYA  ,
    Here is the Example for  making the report  parameter as  Read only  using the Report  Event  ,   Dont need and  screen Number for it , becuase  your selections itself is an Defualt 1000 screen which as   PAI & PBO , in which it maintains this Report Events in it  .
    "Change the Input Fields Dynamically in a Screen
    'The following example may help you:
    SELECTION-SCREEN BEGIN OF BLOCK 001.
    PARAMETERS: P_MRU  RADIOBUTTON GROUP SEL DEFAULT 'X' USER-COMMAND AC,
                P_PART RADIOBUTTON GROUP SEL.
        SELECT-OPTIONS P1 FOR <field> MODIF ID PRT.
        SELECT-OPTIONS G1 FOR <field>  MODIF ID MRU.
    SELECTION-SCREEN END OF BLOCK 001.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF P_MRU = 'X'.
          IF SCREEN-GROUP1 = 'PRT'.
            SCREEN-INPUT = '0'.
          ENDIF.
          IF SCREEN-GROUP1 = 'MRU'.
            SCREEN-INPUT = '1'.
          ENDIF.
      ELSEIF P_PART = 'X'.
         IF SCREEN-GROUP1 = 'MRU'.
           SCREEN-INPUT = '0'.
         ENDIF.
         IF SCREEN-GROUP1 = 'PRT'.
           SCREEN-INPUT = '1'.
         ENDIF.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
    Reward points  if it is usefull .......
    Girish

Maybe you are looking for

  • Firefox crashes as soon as I open it in Windows 7

    I am running a 32 bit computer & I use Windows 7. I have not had any problems with Firefox until the past week or so. My system will crash no matter what site I am on & now I am unable to even open Firefox. My shortcut icons do not work either. I rei

  • Selection screen control for a field in the report painter report

    Hi, Could you please advice me as to how we can add exclude selection functionality for a field on the selection screen of a report made by trhough report painter report. Your prompt reply will be really appreciated. Thanks, Ramesh.

  • JSF/ADF Faces - ADF-BC example/howto?

    Hi, Background: ========== I know that ADF-BC databinding is not included in the JDev 10.1.3 preview. I read and searched nearly all howto's, examples, blogs on ADF-Faces available on the net. For the past months I learned how to use the ADF-BC with

  • Monitor to TV question

    Can you find a converter that will take you monitor and plug it into a cable TV box? So that you can watch TV on your monitor?

  • Securing mapviewer

    Hi, I developed an asp.net application that used to view maps stored in oracle spatial 10g using oracleAS mapviewer (Javascript). The problem is: when I publish the application to the internet, it's easy for any body to copy the javascript file to hi