Getting a File Reference
Getting a File Reference
- Subject: Getting a File Reference
- From: Jim Underwood via AppleScript-Users <email@hidden>
- Date: Tue, 7 Jan 2020 20:55:10 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=apoemail.us; dmarc=pass action=none header.from=apoemail.us; dkim=pass header.d=apoemail.us; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3kL5qEafMW8aykmUBpTN70UKJt3Lwlh12laEgb7uIw0=; b=SL12oVTJ4Av3Ot+Sz/MdcGjSkfAp/bPBQveRrQDihARnNKZBkx5c3mVQJoPJX1IE8TU/ihUMVEwkIDj4b8nPBaqS8TEQ6PuiOE8SwVdt72ZMsmq/IpWSX6Bh3icUwqhIFv960ZuEf3zYGcsB7M6NOywPs/ebNvaVcs/lb9L2V8zQ7yzcciP2DJAVx1UXJM47SlCaHFl9M5xAadjWZSKg8f9FqyE+JG+yjscloFmTgTwaBF5gGUnOyY4vGNYuyNmH6T7XYvt9PYUBR1qgpCQesRgYkraCSSADGc9wmk8wwsa6LmeHKaoFH5wuQRY8NOCavtTgVscsst0T4bIPSOKJFQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kf6Qiu2Enil1yM3W4iU+yCvcRTYoiNq2D5lyUTc61ARTQ1LUgCmxs3zhk6n5g2OrUqFqe7Hrgv7XbSfahK50Om//cwik+o+Ak0yocqtycV6NiRpBSHxQPM5Wzv0esbJnJqo0dyp5L56JM4Q0jQ6HmsWs7Rdc1pyWQRsW/Ug4QC6bMwn2B09/Zxne6yZWfjPONDg9TS9uCa7FmSUPGcO2B9XqqBQz/Ws4WI3aJQm+I9RTPRaFzBCm08UTM0uarFtOw6+4hz9w7hwwvm9gH+0k7uIe2HUByq1I58RXaDvDReDRq0kBOY7FT1n9cViJ6mnVzSrivjqFaqxqbNC0ffzDVw==
- Thread-topic: Getting a File Reference
(was Re: Place file command in InDesign 2020 doesn't seem to work)
Shane, thanks for posting this method.
To clarify and expand, after some testing this looks like a very good method
that handles both HFS and POSIX paths, and both new and existing files. Here's
my little write-up on it:
* «class furl»
* Create a file reference to a new or existing file outside of App's
scope
* set fileRef to "<HFS or POSIX path>" as «class furl»
* Examples:
set fileRef to "Macintosh HD:Users:YourUserName:Documents:New File.txt" as
«class furl»
set fileRef to "/Users/YourUserName/Documents/TEST/New File.txt" as «class furl»
________________________________
On 6 Jan 2020 - wk 2, at 23:33, Shane Stanley
<email@hidden<mailto:email@hidden>> wrote:
A third is to use a «class furl» object or alias created outside InDesign's
scope:
set pic to "Macintosh_HD:Users:bertus:Documents:Applescript:DEEN:HIGHRES
IMAGES:91969 - Hutspot 500 gram-KLEIN.tif" as «class furl»
My strong personal preference would be the third way, moving the creation of
the file object outside InDesign's scope.
--
Shane Stanley <email@hidden<mailto:email@hidden>>
<www.macosxautomation.com/applescript/apps/<http://www.macosxautomation.com/applescript/apps/>>,
<latenightsw.com<http://latenightsw.com/>>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden