Xojo Conferences
XDCMay2019MiamiUSA

Sandbox: automatic open of last used file? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: MBS PortAudio.rbp crashes with 44100 sample rate
Next thread: ColumnFromXY/RowFromXY


Re: OS X close confirmation save dialog   -   Garth Hjelte
  Sandbox: automatic open of last used file?   -   Oliver Osswald
   Re: Sandbox: automatic open of last used file?   -   Charles Yeomans
   Re: Sandbox: automatic open of last used file?   -   Sam Rowlands

Sandbox: automatic open of last used file?
Date: 02.08.12 07:19 (Thu, 2 Aug 2012 08:19:52 +0200)
From: Oliver Osswald
The User selects a database file using a OpenDialog. So far it works in my
sandboxed environment. Now he has the option to automaticaly reload that
file upon next startup of the application. This does not work in Sandbox.

Is there a workaround to automaticaly open a file, without userinteraction,
from a location outside of the sandbox container?

Oliver

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Sandbox: automatic open of last used file?
Date: 02.08.12 13:32 (Thu, 2 Aug 2012 08:32:16 -0400)
From: Charles Yeomans

On Aug 2, 2012, at 2:19 AM, "Oliver Osswald" <<email address removed>> wrote:

> The User selects a database file using a OpenDialog. So far it works in my
> sandboxed environment. Now he has the option to automaticaly reload that
> file upon next startup of the application. This does not work in Sandbox.
>
> Is there a workaround to automaticaly open a file, without userinteraction,
> from a location outside of the sandbox container?

I think you will need to use something like a security-scoped bookmark to record the last file opened.

Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Sandbox: automatic open of last used file?
Date: 03.08.12 02:45 (Fri, 03 Aug 2012 09:45:00 +0800)
From: Sam Rowlands
You need to use Security-Scoped bookmarks.

I’ve posted some code to which you can use. Check the Sandbox folder within the project.

http://www.ohanaware.com/appwrapper/SimpleTextEditor.rbp.zip

Have a great week

Sam Rowlands
rowlands@me.com

On 2 Aug 2012, at 21:07, <email address removed> wrote:

> Message: 12
> Date: Thu, 2 Aug 2012 08:19:52 +0200
> From: "Oliver Osswald" <<email address removed>>
> Subject: Sandbox: automatic open of last used file?
> To: "'Realbasic NUG'" <<email address removed>>
> Message-ID: <88D5A8C851D54944B54740A53E385153@vmxpfrenchoffice>
> Content-Type: text/plain; charset="us-ascii"
>
> The User selects a database file using a OpenDialog. So far it works in my
> sandboxed environment. Now he has the option to automaticaly reload that
> file upon next startup of the application. This does not work in Sandbox.
>
> Is there a workaround to automaticaly open a file, without userinteraction,
> from a location outside of the sandbox container?
>
> Oliver

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>