• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript Error with FM8A
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Error with FM8A


  • Subject: Re: AppleScript Error with FM8A
  • From: Bruce Robertson <email@hidden>
  • Date: Sat, 07 Jan 2006 17:54:44 -0800

> Hi Bruce
>
>> Also - if you are moving or renaming a file, you  don't need applescript to
>> do that, you can do that with standard FileMaker script variables and file
>> path references.
>
> Can you post sample set of script steps that can do that ?

I'll post the message:

>> This is new (to me, anyway):
>>
>> Set a container field to a pathname that points to a non-existent
>> file.
>>
>> Set a variable to the pathname to the file you want to delete.
>> .
>> With error capture on, 'Export field contents' using the the
>> variable to point to the target location. The file is directly
>> deleted, without passing through Trash.
>>
>> You can simply use an empty container field, but the error message
>> is not captured.
>>
>> This is handy for deleting files that a process would otherwise
>> leave on the client machine: e.g. permanently sorting a table.
>>
>> With some scripting you can use this method to move and rename
>> files as well as delete them.
>
> One gotcha to note:  when you insert the "non-existent" file in the
> container field, you have to store only a reference to it.  The file
> can't actually be stored in the container field, or else it won't
> delete the target file later on.  (At least, if you use a global
> container, it must be stored as a reference only).

And can't you just make it a calculated container field, so no real file
ever has to exist? And if it DOES exist, it appears as a result of the
calculation.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: AppleScript Error with FM8A (From: Eric Wright <email@hidden>)

  • Prev by Date: Re: How do I delete the 1st three characters from a variable
  • Next by Date: display alert parameters
  • Previous by thread: Re: AppleScript Error with FM8A
  • Next by thread: Re: Help for processing FrameMaker files...
  • Index(es):
    • Date
    • Thread