|
|
Mac File Path #2
Hello,
MAC OSX, FMPA 9
Is it possible to specify a full data source file path in the Edit
Data Source list that refers to the system startup disk without
knowing what the end user actually named their start up disk?
I know where the file will reside on the users system - the
applications folder of their system disk, I just don't know what
name
they gave their startup disk. I was hoping there was a generic name
similar to the applescript "startup disk"
Example of one of my failed attempt.
filemac:/System Startup/Applications/FolderName/filename.fp7
Thanks
|
|
0
|
|
|
|
Reply
|
vcirilli (34)
|
3/27/2009 12:01:25 AM |
|
On 2009-03-27 01:01:25 +0100, vcirilli <vcirilli@dslextreme.com> said:
> Hello,
> MAC OSX, FMPA 9
> Is it possible to specify a full data source file path in the Edit
> Data Source list that refers to the system startup disk without
> knowing what the end user actually named their start up disk?
> I know where the file will reside on the users system - the
> applications folder of their system disk, I just don't know what
> name
> they gave their startup disk. I was hoping there was a generic name
> similar to the applescript "startup disk"
>
> Example of one of my failed attempt.
> filemac:/System Startup/Applications/FolderName/filename.fp7
>
> Thanks
In filemaker 10 you have:
Use Get(SystemDrive)
Set a variable like $Filepath. Use the Variable in the Edit Data Source
list... or the open file dialog in a script.
Returns /C:/ in Windows when the operating system is on the C: drive.
Returns /DriveName/ in the Mac�OS when the operating system is on a
volume named DriveName.
Regards Nicolay
|
|
0
|
|
|
|
Reply
|
nflaaten_deltetethis (20)
|
3/28/2009 6:25:07 PM
|
|
Nicolay Flaaten <nflaaten_deltetethis@online_hatespam.no> wrote:
> On 2009-03-27 01:01:25 +0100, vcirilli <vcirilli@dslextreme.com> said:
>
> > Hello,
> > MAC OSX, FMPA 9
> > Is it possible to specify a full data source file path in the Edit
> > Data Source list that refers to the system startup disk without
> > knowing what the end user actually named their start up disk?
> > I know where the file will reside on the users system - the
> > applications folder of their system disk, I just don't know what
> > name
> > they gave their startup disk. I was hoping there was a generic name
> > similar to the applescript "startup disk"
> >
> > Example of one of my failed attempt.
> > filemac:/System Startup/Applications/FolderName/filename.fp7
>
> In filemaker 10 you have:
> Use Get(SystemDrive)
> Set a variable like $Filepath. Use the Variable in the Edit Data Source
> list...
Doesn't work. I tried when answering this question in another thread.
See Message-ID
<97e36721-3f47-44a8-9c6e-387e46e3dba7@y6g2000prf.googlegroups.com> for
the other therad.
You can't use variables in paths to an external data source (in either
FMPro 9 or 10).
> or the open file dialog in a script.
That will work in some contexts (e.g. specifying a file for an export),
but not for external data sources (which can't be defined by scripts, as
far as I know).
> Returns /C:/ in Windows when the operating system is on the C: drive.
> Returns /DriveName/ in the Mac OS when the operating system is on a
> volume named DriveName.
--
David Empson
dempson@actrix.gen.nz
|
|
0
|
|
|
|
Reply
|
dempson (3475)
|
3/28/2009 11:33:09 PM
|
|
|
2 Replies
60 Views
(page loaded in 0.114 seconds)
|
|
|
|
|
|
|
|
|