From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cPuFIsshdWbPFQAAqHPOHw:P1 (envelope-from ) for ; Fri, 21 Jun 2024 06:46:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cPuFIsshdWbPFQAAqHPOHw (envelope-from ) for ; Fri, 21 Jun 2024 08:46:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jQR2Aw6m; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718952395; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=G2ZJq8a2Xl18Yr3Z/V1Rlz8mSGjl4mREcu7mR1dHQNk=; b=Gko0zF0sx/ZIDMyK7OP9FUC2ctlluVmtkXX9HPpOLigxlyKCB7mWQfMBIQ0HLavm6JhKG+ wYIY01mImNxW6Dx24w11yC8GtXmviQeFu3wArHxtPVtdN5bKrtw65i3uGyxpUuCcxRhQ84 LKlV7Y2HPkWK/mClSwzVyiPsl6xsoZRISlhaa2V/AyO7L87MtrFAqDs/hGvskkoVabwfgy 2MA72j/VhVD8tM6+JNymEwijsR4V/jL0U6JpQS7tcz1twdQpmCNQ4PoGGnNOhgI3MG2PT/ iC+cnOifTOK9CLwZXrIEHk8yk4dhn5/lwwB82b34mrf97OTsnTqGbqYVkY6Ibg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jQR2Aw6m; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718952395; a=rsa-sha256; cv=none; b=rXZZzICsXlow0iaoJY84TZaUPkKC2I3fZF7fvCQrbNgp1ObE2cz5yrSyjY/Tn+L+d3Q94Y ySz/jP1PEOd0bNCnmsOQq0fbbkGZmHkLp2ijre1mrrdwUnMIIj3buwt3GLTf9sNiB1oIa1 z7z6VGm1SXJboOjX3+sF28o9LUzLbQac29BFLvQMH0xTDUafdTdIIFT7Y9L9hAbSqeTFur Pls1Y3kXA8eEqW7mNGKxOgdKUNMS8ixiUXul2iKhrhQzDgqjIZ082IP+yhuZR7OxJv02vB iFVyK3agE8GsAqj/uClBs3oMzaOXjUX2eYP+s+4SJdL1S2wnGFIsSi7e9DJb+A== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 405B625A7E for ; Fri, 21 Jun 2024 08:46:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKY1u-0005YQ-R3; Fri, 21 Jun 2024 02:45:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKY1k-0005Xu-Tg for emacs-orgmode@gnu.org; Fri, 21 Jun 2024 02:45:47 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKY1h-0002C2-4I for emacs-orgmode@gnu.org; Fri, 21 Jun 2024 02:45:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A2710240103 for ; Fri, 21 Jun 2024 08:45:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1718952334; bh=dEwq6rUYNr/M7jMr7icoNVap482X8GXuAX9zzAQD/VM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=jQR2Aw6mxe1ecLEtblv9Ll7MZBRSA06C3lTEKAarRo8nl54mxTySRytFgS2nSoET3 B+FipEA+4KN3H/OeOoMKtC6FBUvb47nI41b9yGrNfmanSf/NLwsX9Sw17UJu30CUWY 3CvznjgF0enh2K4zOPyNSfuoSU+YFPPsDxRbZ7oZQF0YzDTydkpXW+dvUGKIQPeG61 FkMmO+zfgQY/sGvnVZm9jBiOfA0BIrZAYiBBeshudSbPk3KF7mwvNQ93WMnzr2av0X XLfU5+wIGCu6vQVWZFUlj7miRx8O4OvHCLxBPZslGwxaMpPzsKDzl96ylYVd4bHJ5/ qgeazsjx7Ys2g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W57Cd4F3rz6tmv; Fri, 21 Jun 2024 08:45:33 +0200 (CEST) From: Ihor Radchenko To: David Masterson Cc: emacs-orgmode@gnu.org Subject: Re: Variable Hyperlinks ? In-Reply-To: References: Date: Fri, 21 Jun 2024 06:47:17 +0000 Message-ID: <87ed8qbxmy.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -8.35 X-Migadu-Queue-Id: 405B625A7E X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.35 X-TUID: m+Gqs6cbQqwh David Masterson writes: > I use Org with Emacs 28.2 on Linux and BeOrg on iPhones. I don't > believe iPhones support "symbolic links". Therefore, where I mount a > USB key on each is going to be a different directory. I'd like to store > pictures on my USB key and reference them via "file:" hyperlinks in > Org. My problem is accounting for the different directory locations. > > Can I create a variable (property? tag?) in my Org file that will have > the path to the USB key directory and use that in an Org hyperlink? You can have environment variables in link paths: [[file:$HOME/wallpaper.png]] Alternatively, you can define a link abbreviation: #+link: local-file /home/user/ [[local-file:wallpaper.png]] and then load it via #+SETUPFILE with different setupfiles on PC and phone. Or you can have a custom link type. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at